Skip to contentSkip to conversation

FD in Kernel 2.4.x

DISCUSSION Federico Edelman Anaya 1 participant 1 message Apr 27, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
# ./dklimits 10000
Can open 1020 AF_LOCAL sockets with socketpair
Can open 0 AF_INET sockets with socketpair
Can open 1021 fds
Can open 1021 files
Can poll 1025 sockets
Can bind 1021 ephemeral ports
Quoted 25 lines · Dan Kegel
Quoted 15 lines · Federico Edelman Anaya

Yeah .. I put in /etc/sysctl.conf

fs.file-max=16384
fs.inode-max=65536

But, in 2.4.3 doesn't support fs.inode-max .... :(

Quoted 5 lines · Dan Kegel
Quoted 1 line

How can I increase the FD in the Kernel 2.4.3?

echo 32768 > /proc/sys/fs/file-max

See also http://www.kegel.com/c10k.html#limits.filehandles

You don't need fs.inode-max under 2.4.

Can you check something for me? Run the program dklimits.c from
http://www.kegel.com/dkftpbench/#tuning
with argument 10000 and tell me what it prints. (Compile it with gcc -DLINUX dklimits.c.)

- Dan