-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck,
Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: [OT]Re: Is better one or more Tomcat instances >> per machine >> >> I guess that Linux not only does optimistic malloc, but also >> optimistic calloc as well. I had hoped that zeroing-out the >> memory would count as a "write", but apparently it does not. > > I'm somewhat suprised, since calloc() normally doesn't know if it's > getting fresh memory (guaranteed to be zero) or reusing available > memory. Perhaps calloc() on your platform knows when it's expanding the > C-heap and therefore avoids the redundant clear. I think that glibc and/or the memory manager is just magic. ;) It already knows whether non-glibc code modified the memory, so perhaps it also knows that when you actually try to use a page of memory created with calloc, that it should initialize it to zero when you use it, not when you allocate it. I figured the opposite, but my tests appear to support a zero-on-use implementation. >> I think I only have a gig of swap on this development machine > > You should be able to change that with yast or its equivalent. mkswap works, too. I just don't have any unallocated disk space. Ooh, maybe I can put my swap on a ramdisk... >> I still can't find any documentation about a 2GB contiguous allocation >> limit for Linux anywhere. > > I don't know that there is one. Most of the contiguity problems are > with Windows, due to its scattering of DLLs in the user process space. > There should be tools available for Linux (there are for Windows) to > show what's allocated where in your process space. There are, I just don't know how to interpret the information they display ;) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+CBG9CaO5/Lv0PARAn7XAJ9mIpGwEwlWsQQYAsBXw8ynl3cd4QCgmHwa nNo8YespEQJXcd7z335UVgk= =0ppt -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]