This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for Review: Build all libjava .class files at once (UpdatedAgain)


On Mon, 15 Sep 2003, Andrew Haley wrote:
> I note that this causes the compiler to expand to a resident set size
> of some 266 Mbytes.  On some machines this could cause sever
> thrashing, and maybe libgcj can't be built at all.

Good point.  My guess is that the swapping may not be too horrible given
that GC never happens when building .class files.

Hmm... let's experiment!  My laptop has 256MB of RAM.  I can easily yank
out 128MB, so here's timings for building all classes from sources:

  256MB: 3m2s
  128MB: 5m41s

Time nearly doubled, and the machine thrashed a bit.  (Guess gcc's
locality isn't so great after all with or without GC.  Maybe Dan Berlin's
zone allocator will help.)

So what do you think?  Is this tolerable?  I don't have a 64MB machine
around to try, but as Tom says, with 64MB you'll run into other problems
anyway.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]