On Thu, 13 Feb 2003, Joseph Shraibman wrote: > Dan Kegel wrote: > > Joseph Shraibman wrote: > > > >> I never got anywhere near 1gb of memory usage. > > > > > > Physical memory, maybe, but I bet you a nickel you got > > up near 1GB of *virtual* memory. Go learn about how > > thread stacks work. You're not running out of RAM; you're > > running out of address space. > > I guess I don't know enough about the internals of the memory management, but how? >I know > that virtual address is given by the operating system, which uses the virtual >addresses to > map to physical addresses so it can do swapping, but why would it run out of address? > > > > By the way, what kernel are you running? And which of > > The one that comes with redhat 8.0 (updated), which is kernel-smp-2.4.18-19.8.0 > > > CONFIG_1GB > > CONFIG_2GB > > CONFIG_3GB > > are set in your kernel configuration? > > No idea. How can I check? >
For the stock Red Hat 8.0 kernel, here's how: $ grep CONFIG /boot/config-2.4.18-14 Indeed, the stock Red Hat Linux kernel allocates 1 GB of virtual address space for user memory. When you build your own kernel, the configuration file lies in /usr/src/linux/.config and sets ALL the parameters for your compilation. Dan's probably one of the authorities on this performance issue; but isn't it generally considered bad form to be spawning so many threads in an application? Interesting to see life spring back to this list, leading up to the announcement of Blackdown's J2SE 1.4.1 release. :) Regards, ml ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]