/usr/include/bits.typesizes.h first.
Seems there is no config file that direct change the value, isn't it?
No, not as far as I know.
If I change in /usr/include/bits.typesizes.h, Should I re-compile kernel before it effect to SuSE?
No, that should not be neccessary.
You have another possibility to do it "the hard way". That's what I did on a machine (opensuse 11.1) hosting a squid proxy:
Look for "#define __FD_SETSIZE" in /usr/src/linux/include/linux/posix_types.h and change the value to your needs (here in my case it's 4096). Write this to your boot.local file:
echo 4096 > /proc/sys/fs/file-max ulimit -n 4096
and this to /etc/security/limits.conf:
* soft nofile 1024 * hard nofile 4096
And that's it. Here's the proof:
htd@liesel:~> ulimit -n 4096
But you have to consider that opening an xterm in any desktop environment overrides it, and you'll have to set it doing "ulimit -n xxxx" first. However, every new process uses the new values.
Hi Heinz, I just tried to put these lines, but my FD is still 1024 echo 4096 > /proc/sys/fs/file-max ulimit -n 4096 I could not find /usr/include/bits.typesizes.h. FYI, I use the stock kernel of OpenSuSE 11.1. (I am starting to confuse.....) Thanks a lot. Wong -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org