From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: virtual memory, was Re: Largest size array in Gnat 2005 for the PC?
Date: Tue, 30 Oct 2007 21:35:30 +0100
Date: 2007-10-30T21:35:30+01:00 [thread overview]
Message-ID: <87myu0cpd9.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 8P-dnbw2Ydw2y7ranZ2dnUVZ_qOknZ2d@comcast.com
tmoran@acm.org writes:
>>How much virtual memory does your computer have?
> I wonder how many programmers today have any experience with the
> judicious use of virtual memory. PC users almost always buy enough
> physical memory to satisfy all their apps, and with 32 bit machines
> that was cheap and easy.
> There will probably also be a learning curve as todays' programmers
> find out what "judicious use" means w.r.t. multiple CPUs.
My laptop has two cores and two gigs of memory. I routinely build GCC
4.2 in a 1280-MiB tmpfs in memory. This is large enough for all
temporary files; at the end of the build, just under 990 MiB are still
in use. The build uses 3 threads (i.e. one more than the number of
cores) and the system uses approximately 400 Mb of physical swap, but
that's because I keep X, emacs and galeon running all the time :) No
thrashing takes place and the system is very responsive even during a
build.
In my experience, building in a tmpfs is approximately 3 times as fast
as on a regulsr (XFS) filesystem, even though the kernel has lots of
physical memory to use as a disk cache.
I suggested this solution to Xavier Grave, who builds GCC 4.2 on a
dual-core, dual-thread POWER5 machine with 8 GiB of physical RAM. He
also reported a three-fold improvement (roughly) even though each of
the cores has a 36 MiB level 3 cache that can probably hold all of
GCC :)
Note that we didn't even bother to measure the improvement precisely,
so it is very unscientific.
--
Ludovic Brenta.
next prev parent reply other threads:[~2007-10-30 20:35 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 4:00 Largest size array in Gnat 2005 for the PC? ME
2007-10-30 7:08 ` Martin Krischik
2007-10-30 12:27 ` Florian Weimer
2007-10-30 14:16 ` ME
2007-10-30 14:47 ` Pascal Obry
2007-10-30 18:58 ` Martin Krischik
2007-10-31 5:38 ` ME
2007-10-30 16:07 ` virtual memory, was " tmoran
2007-10-30 19:17 ` Martin Krischik
2007-10-30 20:35 ` Ludovic Brenta [this message]
2007-10-31 5:53 ` ME
2007-10-30 7:28 ` Pascal Obry
2007-10-30 9:47 ` Ludovic Brenta
2007-10-30 19:26 ` Georg Bauhaus
2007-10-30 20:17 ` Adam Beneschan
2007-10-30 22:53 ` tmoran
2007-10-30 23:39 ` Georg Bauhaus
2007-10-30 20:24 ` Adam Beneschan
2007-10-30 21:40 ` Georg Bauhaus
2007-10-30 21:48 ` Adam Beneschan
2007-10-30 21:50 ` Georg Bauhaus
2007-10-30 13:50 ` ME
2007-10-30 14:44 ` Pascal Obry
2007-10-30 15:00 ` Stefan Bellon
2007-10-30 15:16 ` Pascal Obry
2007-10-30 15:22 ` Stefan Bellon
2007-10-31 5:52 ` ME
2007-10-31 9:22 ` Stefan Bellon
2007-10-31 13:33 ` ME
2007-10-31 14:36 ` Stefan Bellon
2007-10-30 17:27 ` anon
2007-10-30 19:06 ` Adam Beneschan
2007-10-31 6:32 ` anon
2007-11-01 4:13 ` ME
2007-11-01 8:44 ` Stefan Bellon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox