Re: memory usage

From: Joao Carlos Mendes Luis <jonny@dont-contact.us>
Date: Tue, 2 Sep 1997 14:37:23 -0300 (EST)

#define quoting(A. Rytsola)
// > In your GENERIC file you need to add the lines
// > options "MAXDSIZ=(256*1024*1024)"
// > options "DFLDSIZ=(256*1024*1024)"
// > This would give you a maximum of 256M per process. Whoo Hoo !!
//
// Yup, I found that. The MAXMEM sets only how much memory
// the FreeBSD kernel can find at boot.. (!)
// I also find it strange that the MAXDSIZ can't be changed
// in the login.conf or sysctl.

Also strange that it started to happen in our server just after an
upgrade to last week's 2.2-RELENG. My kernel config never had any
of these options and squid has always worked well.

I'm currently limiting RSS and datasize in 80M, but I've never seen
squid using more than 50M in this server.

My startup script includes these lines, to ensure resource limiting:

ulimit -Sc unlimited
ulimit -Sn unlimited
ulimit -Sm 81920
ulimit -Sd 81920

And my hardware limits are:

core file size (blocks) 0
data seg size (kbytes) 131072
file size (blocks) unlimited
max locked memory (kbytes) unlimited
max memory size (kbytes) unlimited
open files 5120
pipe size (512 bytes) 1
stack size (kbytes) 65536
cpu time (seconds) unlimited
max user processes 1043
virtual memory (kbytes) 196608

I don't need, nor want to, change any parameters in the kernel config.
sysctl(1) and setrlimit(2) can do all we need. This seems to be a
problem with the 2.2-RELENG from last weeks.

                                        Jonny

--
Joao Carlos Mendes Luis			jonny@gta.ufrj.br
+55 21 290-4698				jonny@coppe.ufrj.br
Universidade Federal do Rio de Janeiro	UFRJ/COPPE/CISI
PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2  83 5F E3 26 BF 0F EA 67
Received on Tue Sep 02 1997 - 16:49:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:55 MST