* increasing the number of file descriptors
@ 2001-02-27 9:39 rsaura
2001-02-27 9:49 ` Joseph Bueno
2001-02-27 13:36 ` Alan Cox
0 siblings, 2 replies; 4+ messages in thread
From: rsaura @ 2001-02-27 9:39 UTC (permalink / raw)
To: linux-kernel; +Cc: whawes
I've recently hit a problem with a httpd process running out of space
for more fd.
While I'm seriouly looking for a fd-leak in the php-development
behind the web server, I realized that i didn't know how to increase
this parameter.
Is there any /proc interface for increasing the number of file
descriptors per process?
Must I recompile? maybe changes must be made to files_struct?
I've seen a patch for "variable fd array patch for 2.1.90" from Bill
Hawes, is there a patch for 2.2.x or 2.4.x kernels?
Please CC answers to rsaura@retevision.es
TAI.
Raúl Saura.
La información incluida en el presente correo electrónico es CONFIDENCIAL,
siendo para el uso exclusivo del destinatario arriba mencionado. Si usted
lee este mensaje y no es el destinatario señalado, el empleado o el agente
responsable de entregar el mensaje al destinatario, o ha recibido esta
comunicación por error, le informamos que está totalmente prohibida
cualquier divulgación, distribución o reproducción de esta comunicación, y
le rogamos que nos lo notifique, nos devuelva el mensaje original a la
dirección arriba mencionada y borre el mensaje.
Gracias.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: increasing the number of file descriptors
2001-02-27 9:39 increasing the number of file descriptors rsaura
@ 2001-02-27 9:49 ` Joseph Bueno
2001-02-27 13:36 ` Alan Cox
1 sibling, 0 replies; 4+ messages in thread
From: Joseph Bueno @ 2001-02-27 9:49 UTC (permalink / raw)
To: rsaura; +Cc: linux-kernel
rsaura@retevision.es a écrit :
>
> I've recently hit a problem with a httpd process running out of space
> for more fd.
>
> While I'm seriouly looking for a fd-leak in the php-development
> behind the web server, I realized that i didn't know how to increase
> this parameter.
>
> Is there any /proc interface for increasing the number of file
> descriptors per process?
>
> Must I recompile? maybe changes must be made to files_struct?
>
> I've seen a patch for "variable fd array patch for 2.1.90" from Bill
> Hawes, is there a patch for 2.2.x or 2.4.x kernels?
>
> Please CC answers to rsaura@retevision.es
>
> TAI.
>
> Raúl Saura.
>
> La información incluida en el presente correo electrónico es CONFIDENCIAL,
> siendo para el uso exclusivo del destinatario arriba mencionado. Si usted
> lee este mensaje y no es el destinatario señalado, el empleado o el agente
> responsable de entregar el mensaje al destinatario, o ha recibido esta
> comunicación por error, le informamos que está totalmente prohibida
> cualquier divulgación, distribución o reproducción de esta comunicación, y
> le rogamos que nos lo notifique, nos devuelva el mensaje original a la
> dirección arriba mencionada y borre el mensaje.
> Gracias.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Hi,
You can change per process file descriptor limit with ulimit.
If your processes are using a lot of fds you can increase system wide limits
with:
/proc/sys/fs/file-max
/proc/sys/fs/inode-max
Regards
--
Joseph Bueno
NetClub/Trader.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: increasing the number of file descriptors
2001-02-27 9:39 increasing the number of file descriptors rsaura
2001-02-27 9:49 ` Joseph Bueno
@ 2001-02-27 13:36 ` Alan Cox
1 sibling, 0 replies; 4+ messages in thread
From: Alan Cox @ 2001-02-27 13:36 UTC (permalink / raw)
To: rsaura; +Cc: linux-kernel, whawes
> Is there any /proc interface for increasing the number of file
> descriptors per process?
No. Use rlimi.
> Must I recompile? maybe changes must be made to files_struct?
Nope. Its all dynamic except for fd_set size, and you should be using poll()
anyway ;)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: increasing the number of file descriptors
@ 2001-02-27 9:55 aprasad
0 siblings, 0 replies; 4+ messages in thread
From: aprasad @ 2001-02-27 9:55 UTC (permalink / raw)
To: rsaura; +Cc: linux-kernel
> While I'm seriouly looking for a fd-leak in the php-development
> behind the web server, I realized that i didn't know how to increase
> this parameter.
> Is there any /proc interface for increasing the number of file
> descriptors per process?
Yes you can do it in /proc/sys/fs/file-nr
regards,
Anil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-02-27 13:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-27 9:39 increasing the number of file descriptors rsaura
2001-02-27 9:49 ` Joseph Bueno
2001-02-27 13:36 ` Alan Cox
2001-02-27 9:55 aprasad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).