Re: [squid-users] filedescriptors help

From: <squid@dont-contact.us>
Date: Wed, 15 Oct 2003 02:21:51 GMT

Sorry Adam, but do not understand what is going on, besides, I have very little
knowledge on this matter.

By a telnet sesion I did a "ulimit -a, and got this:

[root@ns4 root]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 8192
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4032
virtual memory (kbytes, -v) unlimited
[root@ns4 root]#

But at same time logged to another telnet sesion, the same system displays this:
[root@ns4 root]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4032
virtual memory (kbytes, -v) unlimited
[root@ns4 root]#

Could you please tell me why ?

Thanks
Rolando

> > Still having troubles to assign more filedescriptors (RedHat v9).
>
> > Have this running at boot:
> > echo 1 > /proc/sys/net/ipv4/ip_forward
> > ulimit -HSn 8192
> > echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range
> > echo 65536 > /proc/sys/fs/file-max
>
> Did you verify in your shell (using the ulimit command) that the
> filedescriptor limit was still 8192 before rebuilding the rpm?
>
> > Then I did:
> > rpmbuild --rebuild squid-2.5.STABLE3-1rh.src.rpm and installed
> > from /usr/src/redhat/RPMS/i386/ the rpm like this:
> > rpm -ivh squid-2.5.STABLE3-1rh.src.rpm
>
> I just checked the rpm man page, and it looks like the rpm -ivh is not
> necessary - the --rebuild is supposed to install the package after it
> compiles it. (I checked this on RedHat 7.3 - RedHat 9 may be different).
>
> Adam
Received on Tue Oct 14 2003 - 20:26:34 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:29 MST