* Ulimit
@ 1998-10-14 4:00 Dean Baldwin
1998-10-14 4:00 ` Ulimit Paul Tomblin
0 siblings, 1 reply; 4+ messages in thread
From: Dean Baldwin @ 1998-10-14 4:00 UTC (permalink / raw)
Hi,
I have been trying to use ulimit -n 1024 to set the maximum open files
to 1024. At the moment
I get a message saying operation isn't permitted. I get the feeling that
this needs to be changed
at a kernel level and recompiled. Does anybody have any thoughts on
this?
Thanks,
Dean
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ulimit
1998-10-14 4:00 Ulimit Dean Baldwin
@ 1998-10-14 4:00 ` Paul Tomblin
1998-10-14 4:00 ` Ulimit Dean Baldwin
0 siblings, 1 reply; 4+ messages in thread
From: Paul Tomblin @ 1998-10-14 4:00 UTC (permalink / raw)
In a previous article, Dean Baldwin <dean@intergraphica.co.uk> said:
>I have been trying to use ulimit -n 1024 to set the maximum open files
>to 1024. At the moment
>I get a message saying operation isn't permitted. I get the feeling that
>this needs to be changed
>at a kernel level and recompiled. Does anybody have any thoughts on
>this?
As root, you have to do:
echo "2048" > /proc/sys/kernel/file-max
That sets the maximum allowed for the entire system.
I have no idea if that will allow you to raise the per-process limit on the
number of files.
--
Paul Tomblin, ptomblin@xcski.com.
"and by God I *KNOW* what this network is for, and you can't have it."
- Russ Allbery draws a line in the sand for Usenet.
(http://www.xnet.com/~raven/Sysadmin/Rant.html)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ulimit
1998-10-14 4:00 ` Ulimit Paul Tomblin
@ 1998-10-14 4:00 ` Dean Baldwin
1998-10-15 4:00 ` Ulimit G. Hugh SONG
0 siblings, 1 reply; 4+ messages in thread
From: Dean Baldwin @ 1998-10-14 4:00 UTC (permalink / raw)
Thanks for that. However I have given that a go and nothing seems to have
changed
when I do ulimit -a
Cheers,
Dean
Paul Tomblin wrote:
> In a previous article, Dean Baldwin <dean@intergraphica.co.uk> said:
> >I have been trying to use ulimit -n 1024 to set the maximum open files
> >to 1024. At the moment
> >I get a message saying operation isn't permitted. I get the feeling that
> >this needs to be changed
> >at a kernel level and recompiled. Does anybody have any thoughts on
> >this?
>
> As root, you have to do:
>
> echo "2048" > /proc/sys/kernel/file-max
>
> That sets the maximum allowed for the entire system.
>
> I have no idea if that will allow you to raise the per-process limit on the
> number of files.
>
> --
> Paul Tomblin, ptomblin@xcski.com.
> "and by God I *KNOW* what this network is for, and you can't have it."
> - Russ Allbery draws a line in the sand for Usenet.
> (http://www.xnet.com/~raven/Sysadmin/Rant.html)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ulimit
1998-10-14 4:00 ` Ulimit Dean Baldwin
@ 1998-10-15 4:00 ` G. Hugh SONG
0 siblings, 0 replies; 4+ messages in thread
From: G. Hugh SONG @ 1998-10-15 4:00 UTC (permalink / raw)
Dean Baldwin wrote:
> Thanks for that. However I have given that a go and nothing seems to have
> changed
> when I do ulimit -a
>
> Cheers,
> Dean
>
If that is the case, I am not sure whether my suggestion would work or not.
You might just read the man page of initscript, and try the method
there. That is the easiest thing you can try.
Be careful since the last line of the example is really essential.
If you miss it, you cannot boot into your root file system.
I solved my problem by that method for ulimit -s.
Good luck
> Paul Tomblin wrote:
>
> > In a previous article, Dean Baldwin <dean@intergraphica.co.uk> said:
> > >I have been trying to use ulimit -n 1024 to set the maximum open files
> > >to 1024. At the moment
> > >I get a message saying operation isn't permitted. I get the feeling that
> > >this needs to be changed
> > >at a kernel level and recompiled. Does anybody have any thoughts on
> > >this?
> >
> > As root, you have to do:
> >
> > echo "2048" > /proc/sys/kernel/file-max
> >
> > That sets the maximum allowed for the entire system.
> >
> > I have no idea if that will allow you to raise the per-process limit on the
> > number of files.
> >
> > --
> > Paul Tomblin, ptomblin@xcski.com.
> > "and by God I *KNOW* what this network is for, and you can't have it."
> > - Russ Allbery draws a line in the sand for Usenet.
> > (http://www.xnet.com/~raven/Sysadmin/Rant.html)
--
G. Hugh Song
PS: Please remove "Spamspoiler" when replying
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-10-15 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-14 4:00 Ulimit Dean Baldwin
1998-10-14 4:00 ` Ulimit Paul Tomblin
1998-10-14 4:00 ` Ulimit Dean Baldwin
1998-10-15 4:00 ` Ulimit G. Hugh SONG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox