Ivan Maidanski | 1 Oct 2010 08:04
Picon

Re: Re: What's difference in GC between Windows version and WinCE version?

Hi!

WinCE block allocation algorithm is a bit different from Win32.

Try play with GC_FREE_SPACE_DIVISOR and GC_INITIAL_HEAP_SIZE.

Thu, 30 Sep 2010 03:00:12 +0000 (UTC) biosli <biosli@...>:

> Thanks to reply.
> Ivan Maidanski <ivmai <at> ...> writes:
> > 
> > 
> > Tue, 28 Sep 2010 10:13:05 +0000 (UTC) gcbiosli <biosli <at> ...>:
> > on 
> > > I use GC in my program both Windows version and WinCE version. The
> code is
> > > same.
> > 
> > Are the configurations same? You're not using USE_MUNMAP in both
> cases, right?
> > 
> The configurations is same. I defined USE_MUNMAP, SMALL_CONFIG, GC_THREADS and
> ALL_INTERIOR_POINTERS, in both version.
> And I found that used memory size will come down later, in WinCE version.
> exp. In WinCE version, I call function funcA() which need a lot memory(a lot
> of
> small blocks) then release all used memory, then I call funcB() which need
> little memory several times, the memory used size comes down. 
> If I call function funcA() repeatedly, the memory used size grows, and don't
> goes
(Continue reading)

Paul Bone | 4 Oct 2010 08:55
Picon
Picon

Re: Are there any tuning options for thread local allocator?

Lothar Scholz <scholz@...> wrote:
> Hello,
> 
> I found that the malloc is still the serious bottleneck in my program
> when i go from 2 to 4 cores. I have the thread local allocation
> enabled but it seems that it keeps to few memory chunks local and so
> it has access the global mutex often.
> 

I would also like to know this.  Specifically I have a program that
allocates many small cells.  I want to tell Boehm to cache more small
cells in it's thread-local pool so that it does global allocation less
often.  Perhaps each thread should take more memory from the global
pools each time it has the lock.

--

-- 
Paul Bone
Computer Science Research Student.
http://www.csse.unimelb.edu.au/~pbone/
Boehm, Hans | 5 Oct 2010 06:01
Picon
Favicon

RE: Re: Are there any tuning options for thread local allocator?

The allocation is still the bottleneck?  What sizes of objects are being allocated?

It should normally be allocating on the order of HBLKSIZE bytes per lock acquisition.  But it only does so for
objects up to about 256 bytes.  And only after the allocating thread has warmed up and allocated a bunch of
objects of that size.

It may work to increase HBLKSIZE.  That probably has a better chance of working if MPROTECT_VDB does not get defined.

If the problem is really in the marker, you may want to make sure that PARALLEL_MARK is also turned on.

Hans

> -----Original Message-----
> From: gc-bounces@... [mailto:gc-bounces@...]
> On Behalf Of Paul Bone
> Sent: Sunday, October 03, 2010 11:56 PM
> To: gc@...
> Subject: [Gc] Re: Are there any tuning options for thread local
> allocator?
> 
> Lothar Scholz <scholz@...> wrote:
> > Hello,
> >
> > I found that the malloc is still the serious bottleneck in my program
> > when i go from 2 to 4 cores. I have the thread local allocation
> > enabled but it seems that it keeps to few memory chunks local and so
> > it has access the global mutex often.
> >
> 
> I would also like to know this.  Specifically I have a program that
(Continue reading)

djamel magri | 5 Oct 2010 18:22
Picon

Symbian support

Hi Hans,

I have ported 7.1 on Symbian 3rd and 5th edition(monothreaded for now), that
works on emulator(a bit hacked for static roots) and on target(tested on armv5
with linker symbols).
If interested I can send you the sources(I have not created a patch tough).
It will require some tidy up and multithreaded support(start/stop world +
mutexes for allocations)
It requires installation of open C.

Kind regards
Djamel
djamel magri | 5 Oct 2010 18:34
Picon

Re: Re[2]: Support for iPhone

Hi, 

I have version 7.2alpha4 running fine on iphone target and simulator.
(Sdk 4.1 running on macosx 10.6.4, deployed on simu 4.1 and iphone 4.1)

I can share Xcode(v3.2.4) project with a unit test if interested

Djamel
djamel magri | 5 Oct 2010 18:30
Picon

Re: Support for iPhone

Hi Ivan, 

Which gc version this mono patch should be applied on?

thanks a lot
Ivan Maidanski | 5 Oct 2010 21:09
Picon

Re: Re: Re[2]: Support for iPhone

Hello!

A patch against the current CVS snapshot is appreciated.

PS. At present, I'm doing changes to Darwin-specific threads support code to stop and scan only registered
threads by default.

Tue, 5 Oct 2010 16:34:30 +0000 (UTC) djamel magri <djamel.magri@...>:

> Hi, 
> I have version 7.2alpha4 running fine on iphone target and simulator.
> (Sdk 4.1 running on macosx 10.6.4, deployed on simu 4.1 and iphone 4.1)
> I can share Xcode(v3.2.4) project with a unit test if interested
> Djamel
Ivan Maidanski | 5 Oct 2010 21:03
Picon

Re: Re: Support for iPhone

Hi!

which patch?

Tue, 5 Oct 2010 16:30:01 +0000 (UTC) djamel magri <djamel.magri@...>:

> Hi Ivan, 
> Which gc version this mono patch should be applied on?
> thanks a lot
Ivan Maidanski | 5 Oct 2010 21:15
Picon

Re: Symbian support

Hello!

Again, a patch against the current CSV snap is appreciated (it's not a problem if there should be no
multi-threaded support immediately).

Tue, 5 Oct 2010 16:22:16 +0000 (UTC) djamel magri <djamel.magri@...>:

> Hi Hans,
> I have ported 7.1 on Symbian 3rd and 5th edition(mono-threaded for now), that
> works on emulator(a bit hacked for static roots) and on target(tested on armv5
> with linker symbols).
> If interested I can send you the sources(I have not created a patch tough).
> It will require some tidy up and multi-threaded support(start/stop world +
> mutexes for allocations)
> It requires installation of open C.
> Kind regards
> Djamel
Ivan Maidanski | 5 Oct 2010 21:34
Picon

Re[2]: Re: Support for iPhone

Privet!

The patch at post 2788 is for CVS snapshot dated Jun 5 or so (Either I posted a patch and then applied it to the
CVS, or the reverse order happened.)

Tue, 5 Oct 2010 21:17:50 +0200 djamel magri <djamel.magri@...>:

> Priviat, 
> ?I have no clue whats going wrong in the mailing list, the search with iphone
> keyword doesnt display my messages(from here :
> http://dir.gmane.org/gmane.comp.programming.garbage-collection.boehmgc).
> Search with author doesnt work either with my name.
> You can see the original thread with this view tough :
> http://comments.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/2788
> Djamel
> 2010/10/5 Ivan Maidanski <ivmai@...>
> Hi!
> which patch?
> Tue, 5 Oct 2010 16:30:01 +0000 (UTC) djamel magri
> <djamel.magri@...>:
> > Hi Ivan,
> > Which gc version this mono patch should be applied on?
> > thanks a lot

Gmane