Re: [mailinglists] Ulimit and max processes
Hi all, ok I am starting to get a bit further - If I log in on the console, I get a max processes of 7168 If I log in via telnet (installed for the test) I get 7168 If I have a cronjob that 'ulimit -a /tmp/ulimit' I get 7168 If I edit /etc/init.d/rc and add a 'ulimit -a /ulimit.txt' I get 7168 If I log in via ssh I get 256. The defualt PAM config uses /etc/security/limits.conf, and the default limits.conf is empty. I have changed the setting in limits.conf to 4000, AND rebooted, but no change in the 256. Does sshd do something stupid? Thanks Andrew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
Hi all, ok I am starting to get a bit further - If I log in on the console, I get a max processes of 7168 If I log in via telnet (installed for the test) I get 7168 If I have a cronjob that 'ulimit -a /tmp/ulimit' I get 7168 If I edit /etc/init.d/rc and add a 'ulimit -a /ulimit.txt' I get 7168 If I log in via ssh I get 256. The defualt PAM config uses /etc/security/limits.conf, and the default limits.conf is empty. I have changed the setting in limits.conf to 4000, AND rebooted, but no change in the 256. Does sshd do something stupid? Thanks Andrew
Re: [mailinglists] Ulimit and max processes
The box with 7168 is installed from a NetInstall Debian CD. The box with 256 is installed via PXE Boot using a copied filesystem from a box installed with the SAME NetInstall Debian CD. Both boxes are initially installed with WOODY, using the bf24 kernel. Regards Andrew Andrew: Did you upgrade the 256er-boxen from 2.2? Did you use make oldconfig or took you parts (patches) from the kernel before? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
The box with 7168 is installed from a NetInstall Debian CD. The box with 256 is installed via PXE Boot using a copied filesystem from a box installed with the SAME NetInstall Debian CD. Both boxes are initially installed with WOODY, using the bf24 kernel. Regards Andrew Andrew: Did you upgrade the 256er-boxen from 2.2? Did you use make oldconfig or took you parts (patches) from the kernel before?
Re: [mailinglists] Ulimit and max processes
Andreas John wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes /etc/sysctl.conf are empty www01:~# diff login.defs.develop /etc/login.defs www01:~# www01:~# diff limits.conf.develop /etc/security/limits.conf www01:~# Any other ideas where the problem could be? bastille change the ulimit ciao cate -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
are you using the same kernel on both boxes? 2.4.x gives the 7168 limit, 2.6.x gives unlimited and 2.2.x gives 256 by default. Andrew Miehs wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
I have installed the SAME packages with dpkg --set-selections on two boxes with a self compiled kernel 2.4.25-p4smp. One has 256, one has 7168 WHERE is the 256 coming from - I have looked everywhere - even compared etc, lib dirs etc... I just dont understand!!! Thanks Andrew are you using the same kernel on both boxes? 2.4.x gives the 7168 limit, 2.6.x gives unlimited and 2.2.x gives 256 by default. Andrew Miehs wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
Hector Gonzalez wrote: are you using the same kernel on both boxes? 2.4.x gives the 7168 limit, 2.6.x gives unlimited and 2.2.x gives 256 by default. Together with andrews information (--get-selections say: same pachages installed) I would assume that on of the boxes had a 2.2.x before an for some weired reason there is d #define in the kernel source of 2.2.series that made it into Andrew's special 2.4.x. Andrew: Did you upgrade the 256er-boxen from 2.2? Did you use make oldconfig or took you parts (patches) from the kernel before? rgds, Andreas -- Andreas John net-lab GmbH Luisenstrasse 30b 63067 Offenbach Tel: +49 69 85700331 http://www.net-lab.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
/etc/sysctl.conf is empty on both boxes... Both are running woody. Very confused... Andrew On 18.05.2004, at 10:40, Philipp Steinkrüger wrote: use sysctl. i think there is also a config file /etc/sysctl.conf. regards, philipp - Original Message - From: Andrew Miehs [EMAIL PROTECTED] To: debian-isp@lists.debian.org Sent: Tuesday, May 18, 2004 1:06 AM Subject: [mailinglists] Ulimit and max processes Dear list, I am confused... I am running two debian boxes with woody, but one has a ulimit -u (max user proc) of 7168, and the other of 256. (both as root) the difference does not appear to be in login.defs or /etc/security/limits. Does anyone have any ideas where I should look... diff -r /etc /etcother didnt seem to show any important diffeneces.. Thanks for your help, Andrew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes /etc/sysctl.conf are empty www01:~# diff login.defs.develop /etc/login.defs www01:~# www01:~# diff limits.conf.develop /etc/security/limits.conf www01:~# Any other ideas where the problem could be? Thanks Andrew On 18.05.2004, at 10:51, Philipp Steinkrüger wrote: thats not strange. i have a woody box here with an empty file, but i have some very loaded servers which needed to be tuned, so sysctl.conf isnt emtpy anymore :)
Re: [mailinglists] Ulimit and max processes
Hi! Do you have some security-enhancement packages installed on www01? I could imagine (i.e. don't know :-)) that stuff like selinux decreases umlimits on kernel compile time. Or maybe some uml or virtual hosts/machine package installed for hosting customers? rgds, j. Andrew Miehs wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes /etc/sysctl.conf are empty www01:~# diff login.defs.develop /etc/login.defs www01:~# www01:~# diff limits.conf.develop /etc/security/limits.conf www01:~# Any other ideas where the problem could be? Thanks Andrew On 18.05.2004, at 10:51, Philipp Steinkrüger wrote: thats not strange. i have a woody box here with an empty file, but i have some very loaded servers which needed to be tuned, so sysctl.conf isnt emtpy anymore :) -- Andreas John net-lab GmbH Luisenstrasse 30b 63067 Offenbach Tel: +49 69 85700331 http://www.net-lab.net
Re: [mailinglists] Ulimit and max processes
Andreas John wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes /etc/sysctl.conf are empty www01:~# diff login.defs.develop /etc/login.defs www01:~# www01:~# diff limits.conf.develop /etc/security/limits.conf www01:~# Any other ideas where the problem could be? bastille change the ulimit ciao cate
Re: [mailinglists] Ulimit and max processes
Hi, I checked on 7 debian (woody) server compaq , all with kernel 2.4.24 (same build). - in 2 servers I find 4095 (no the same hardware) - in one 3075 - in other one 1024 !!???!!! sorry not answer of this question ! Mat Giacomo A. Catenazzi [EMAIL PROTECTED] 05/18/04 2:05 PM Andreas John wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes /etc/sysctl.conf are empty www01:~# diff login.defs.develop /etc/login.defs www01:~# www01:~# diff limits.conf.develop /etc/security/limits.conf www01:~# Any other ideas where the problem could be? bastille change the ulimit ciao cate -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
are you using the same kernel on both boxes? 2.4.x gives the 7168 limit, 2.6.x gives unlimited and 2.2.x gives 256 by default. Andrew Miehs wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes
Re: [mailinglists] Ulimit and max processes
I have installed the SAME packages with dpkg --set-selections on two boxes with a self compiled kernel 2.4.25-p4smp. One has 256, one has 7168 WHERE is the 256 coming from - I have looked everywhere - even compared etc, lib dirs etc... I just dont understand!!! Thanks Andrew are you using the same kernel on both boxes? 2.4.x gives the 7168 limit, 2.6.x gives unlimited and 2.2.x gives 256 by default. Andrew Miehs wrote: Hi Philipp, I agree with you that the boxes may need tuning, but thats not the point develop:~$ ulimit -u 7168 develop:~$ www01:~# ulimit -u 256 www01:~# On both boxes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [mailinglists] Ulimit and max processes
Hector Gonzalez wrote: are you using the same kernel on both boxes? 2.4.x gives the 7168 limit, 2.6.x gives unlimited and 2.2.x gives 256 by default. Together with andrews information (--get-selections say: same pachages installed) I would assume that on of the boxes had a 2.2.x before an for some weired reason there is d #define in the kernel source of 2.2.series that made it into Andrew's special 2.4.x. Andrew: Did you upgrade the 256er-boxen from 2.2? Did you use make oldconfig or took you parts (patches) from the kernel before? rgds, Andreas -- Andreas John net-lab GmbH Luisenstrasse 30b 63067 Offenbach Tel: +49 69 85700331 http://www.net-lab.net