Re: NR_OPEN value

From: Matti Aarnio (matti.aarnio@sonera.fi)
Date: Fri Feb 18 2000 - 21:10:19 EST


On Fri, Feb 18, 2000 at 01:09:56PM -0800, Hector Herrera wrote:
> Hello,
>
> I need to increase the maximum number of fds from 1024 to 4096 per process.
...
> My application now works as expected, but the system performance has
> decreased somewhat.
>
> My question is, how do my changes affect the kernel? should I consider
> using more but less powerful servers instead of concentrating the load
> in one single server?

        The more FD's your select() ( or poll() ) system call
        must pass at each syscall, the slower it will be.
        And having more FD's, the more activity changes your
        server process has, e.g. more often you will return
        from poll()/select()..

        You would do well (with less systemcall overhead) by
        running smaller FD sets at more servers.

> Thank you
> --
> Hector Herrera

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:22 EST