NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Any advanatages to keeping process virtual memory to a minimum?



On NetBSD default thread stack size seems to be around 8 MiB, which is
quite a lot and most of the time threads don't need this much space.

When creating large number of threads, process' virtual memory (VSZ)
can be quite large. This can be reduced with pthread_attr_setstacksize()
but I wonder if there are any advantages to doing this? Solaris used to
reserve swap space based on process memory usage, but this doesn't
apply to NetBSD. Are there any usage scenarios on NetBSD where the size
of virtual memory can be important?


Home | Main Index | Thread Index | Old Index