For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > June 2006 > setting ulimit









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author setting ulimit
mehaboob@gmail.com

2006-06-29, 7:02 pm

Hi,


I have HPUX,

The kernel settings for maxfiles and maxfiles_lim is 4096.

But I do get an error from the process which works OK for some time if
I set from the console
the command "ulimit -n 1024" and restart the process.

1)Why do we need to set again at the console? Setting the kernel
paramter maxfiles is not enough?
2)I have verified the file /stand/system,the entry for maxfiles is
correct(4096)?

Could anybody tell me why do I need to set again at the user level even
though the kernel paramter is set to 4096.

Thanks in advance,
Mehaboob

Bill Marcum

2006-06-29, 7:02 pm

On 29 Jun 2006 09:29:01 -0700, mehaboob@gmail.com
<mehaboob@gmail.com> wrote:
> Hi,
>
>
> I have HPUX,
>
> The kernel settings for maxfiles and maxfiles_lim is 4096.
>
> But I do get an error from the process which works OK for some time if
> I set from the console
> the command "ulimit -n 1024" and restart the process.
>
> 1)Why do we need to set again at the console? Setting the kernel
> paramter maxfiles is not enough?
> 2)I have verified the file /stand/system,the entry for maxfiles is
> correct(4096)?
>
> Could anybody tell me why do I need to set again at the user level even
> though the kernel paramter is set to 4096.
>
> Thanks in advance,
> Mehaboob
>

The question is, what are you doing that opens so many files?
What error do you get if you do not set the limit to 1024?


--
<Flood> netgod: I also have a "Evil Inside" T-shirt (w/ Intel logo).. on
the back it states: "When the rapture comes, will you have root?"
mehaboob@gmail.com

2006-06-29, 7:02 pm


Bill Marcum wrote:

> On 29 Jun 2006 09:29:01 -0700, mehaboob@gmail.com
> <mehaboob@gmail.com> wrote:
> The question is, what are you doing that opens so many files?
> What error do you get if you do not set the limit to 1024?
>
>
> --
> <Flood> netgod: I also have a "Evil Inside" T-shirt (w/ Intel logo).. on
> the back it states: "When the rapture comes, will you have root?"


One of the application fails to do the intended operation.
But my question is why is it not taking the maxfile limit from the
kernel parameter and why it has to be set on the console?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com