Re: Stretch - bash crash when reach ulimit file size

2018-01-26 Thread Felipe Salvador
On Fri, Jan 26, 2018 at 11:05:09AM -0500, Greg Wooledge wrote: > Yes, it's a bug in his script. Not in bash. > > Resource limits are quite low-level; they are implemented as kernel > system calls (see setrlimit(2)). Processes which violate a resource > limit are signalled by the kernel. > > In

Re: Stretch - bash crash when reach ulimit file size

2018-01-26 Thread Peter Hillier-Brook
On 26/01/18 16:05, Greg Wooledge wrote: > On Fri, Jan 26, 2018 at 03:45:22PM +, Peter Hillier-Brook wrote: >> On 26/01/18 10:47, Felipe Salvador wrote: >>> $ while true; do echo a>>a; done >>> >>> makes bash crash when file size is reached > >> A crash is always a bug. I suggest that you r

Re: Stretch - bash crash when reach ulimit file size

2018-01-26 Thread Greg Wooledge
On Fri, Jan 26, 2018 at 03:45:22PM +, Peter Hillier-Brook wrote: > On 26/01/18 10:47, Felipe Salvador wrote: > > $ while true; do echo a>>a; done > > > > makes bash crash when file size is reached > A crash is always a bug. I suggest that you report it as such - if not > already reported.

Re: Stretch - bash crash when reach ulimit file size

2018-01-26 Thread Peter Hillier-Brook
On 26/01/18 10:47, Felipe Salvador wrote: > Hi list, > setting > > ulimit -f 1024 > > and running (for example) > > $ while true; do echo a>>a; done > > makes bash crash when file size is reached > > Warning: Program '/bin/bash&

Stretch - bash crash when reach ulimit file size

2018-01-26 Thread Felipe Salvador
Hi list, setting ulimit -f 1024 and running (for example) $ while true; do echo a>>a; done makes bash crash when file size is reached Warning: Program '/bin/bash' crashed. $ du a 1024/home/felipe/a I would expect an error or something else

Re: ulimit not working for changing daemon limits

2012-04-12 Thread Camaleón
ave. I have read that inserting a ulimit command in the init >>> script is the way to do this. >> >> (...) >> >> I can be wrong but I had understood ulimits (per user/daemon) are set >> from "/etc/security/limits.conf" :-? > >>From [1] > &

Re: ulimit not working for changing daemon limits

2012-04-11 Thread Matt Zagrabelny
On Wed, Apr 11, 2012 at 12:49 PM, Camaleón wrote: > On Wed, 11 Apr 2012 11:04:19 -0500, Matt Zagrabelny wrote: > >> I am trying to increase the number of open files the sendmail daemon may >> have. I have read that inserting a ulimit command in the init script is >

Re: ulimit not working for changing daemon limits

2012-04-11 Thread Camaleón
On Wed, 11 Apr 2012 11:04:19 -0500, Matt Zagrabelny wrote: > I am trying to increase the number of open files the sendmail daemon may > have. I have read that inserting a ulimit command in the init script is > the way to do this. (...) I can be wrong but I had understood ulimits

ulimit not working for changing daemon limits

2012-04-11 Thread Matt Zagrabelny
Greetings, I am trying to increase the number of open files the sendmail daemon may have. I have read that inserting a ulimit command in the init script is the way to do this. I have adjusted the init script as so: # head -n 25 /etc/init.d/sendmail #!/bin/sh ### BEGIN INIT INFO # Provides

Re: how to set permanent ulimit

2010-01-27 Thread Alex Samad
On Wed, Jan 27, 2010 at 07:15:19AM +0100, Vadkan Jozsef wrote: > sorry:D > > i wanted to write: it's not working. :\ what happens when you type ulimit -a plus you need # Sets up user limits according to /etc/security/limits.conf # (Replaces the use of /etc/limits in old

Re: how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
sorry:D i wanted to write: it's not working. :\ On k, 2010-01-26 at 19:42 -0500, Stephen Powell wrote: > On 2010-01-01 at 19:04:22 -0500, Vadkan Jozsef wrote: > > i wrote this two lines: > > > > *hardnofile10240 > > *softnofile10240 > > > > in /etc/security/limits.conf,

Re: how to set permanent ulimit

2010-01-26 Thread Stephen Powell
On 2010-01-01 at 19:04:22 -0500, Vadkan Jozsef wrote: > i wrote this two lines: > > *hardnofile10240 > *softnofile10240 > > in /etc/security/limits.conf, reboot > but its now working. That does not make sense. Do you mean "and it's now working", or do you mean "but it's

Re: how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
, add the following line: > > > >databasehardnofile 10240 > > > > In /home/database/.bash_profile add the following line: > > > >ulimit -n 10240 > > I just thought of another way, which I think is even better. > In /et

Re: how to set permanent ulimit

2010-01-26 Thread Stephen Powell
On 2010-01-26 at 16:44:33 -0500, Stephen Powell wrote: > In /etc/security/limits.conf, add the following line: > >databasehardnofile 10240 > > In /home/database/.bash_profile add the following line: > >ulimit -n 10240 I just thought of another way,

Re: how to set permanent ulimit

2010-01-26 Thread Stephen Powell
On 2010-01-26 at 15:53:37 -0500, Vadkan Jozsef wrote: > so the question still is: how can I set ulimit to be permanent? e.g.: > 10240 after reboot? :D > > there's no way for it?:O I believe that Alex and I just told you, in effect. But if you need detailed instructions, OK. :-(

Re: how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
so the question still is: how can I set ulimit to be permanent? e.g.: 10240 after reboot? :D there's no way for it?:O On k, 2010-01-26 at 15:42 -0500, Stephen Powell wrote: > On 2010-01-26 at 14:40:23 -0500, Alex Samad wrote: > > have a look at /etc/security/limits.conf > >

Re: how to set permanent ulimit

2010-01-26 Thread Stephen Powell
e following entry: * hardnofile 1048 I then shutdown and rebooted. I login as a normal user and issue $ ulimit -n 1024 $ ulimit -n 1048 $ ulimit -n 1048 $ ulimit -n 2000 -bash: ulimit: open files: cannot modifiy limit: Operation not permitted The limit sta

Re: how to set permanent ulimit

2010-01-26 Thread Alex Samad
On Tue, Jan 26, 2010 at 01:47:31PM -0500, Stephen Powell wrote: > On 2010-01-26 at 12:54:49 -0500, Vadkan Jozsef wrote: > > How can I set ulimit? > > when I give: > > > > ulimit -n 10240 > > > > ok, > > > > ulimit -n > > > > give

Re: how to set permanent ulimit

2010-01-26 Thread Stephen Powell
On 2010-01-26 at 12:54:49 -0500, Vadkan Jozsef wrote: > How can I set ulimit? > when I give: > > ulimit -n 10240 > > ok, > > ulimit -n > > gives 10240. But. after a few minutes, it 1024 again! > How can I set the ulimit to be permanently 10240? > I

Re: how to set permanent ulimit

2010-01-26 Thread Boyd Stephen Smith Jr.
On Tuesday 26 January 2010 11:54:49 Vadkan Jozsef wrote: > How can I set ulimit? > > when I give: > > ulimit -n 10240 ulimits is an inheritable aspect of processes, like an environment variable. The ulimit "command" is actually a shell built-in that tell the shell

how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
How can I set ulimit? when I give: ulimit -n 10240 ok, ulimit -n gives 10240. But. after a few minutes, it 1024 again! How can I set the ulimit to be permanently 10240? It would be important! :S Thank you :\ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a

Re: setting ulimit permanently

2010-01-05 Thread Boyd Stephen Smith Jr.
In <560840.34719...@web114116.mail.gq1.yahoo.com>, Tudod Ki wrote: >is >echo 'ulimit -n 10240' >> /etc/profiles >a bad idea? [because it runs every time when someone logins] >Is it a BAD idea OR NOT? It is a bad idea, since global limits can already be

setting ulimit permanently

2010-01-05 Thread Tudod Ki
is echo 'ulimit -n 10240' >> /etc/profiles a bad idea? [because it runs every time when someone logins] Is it a BAD idea OR NOT? :D:O thank you

set apache ulimit

2010-01-04 Thread Tudod Ki
how can I set apache [1.3] ulimit from the default 1024? thanks

Re: Limits (ulimit)

2009-12-03 Thread Roger Leigh
On Thu, Dec 03, 2009 at 01:28:21PM -0200, Márcio Luciano Donada wrote: > Hi People > I set some limits (/etc/security/ limits.conf) but when you restart the > server the same did not apply the rules, as follows: Hi, check if the server PAM config under /etc/pam.d includes pam_limits.so, which is w

Limits (ulimit)

2009-12-03 Thread Márcio Luciano Donada
Hi People I set some limits (/etc/security/ limits.conf) but when you restart the server the same did not apply the rules, as follows: * softnproc 8188 * hardnproc 65536 * softnofile 8192 * hardnofile 824692 core file s

Re: what exactly is resident set size in /etc/security/limit.conf and ulimit -m?

2009-11-11 Thread Todd A. Jacobs
On Wed, Nov 11, 2009 at 12:14:43PM +0800, Zhang Weiwu wrote: > Having read the manual and examples on the Internet, still confused. As far as I understand it, ulimit is per process. RSS only addresses how much of the process is resident in RAM, and some googling suggests that it may not actua

what exactly is resident set size in /etc/security/limit.conf and ulimit -m?

2009-11-10 Thread Zhang Weiwu
Having read the manual and examples on the Internet, still confused. Some suggest it is the limit of a session (as http://www.svantech.com/node/4. * Was it the size limit of a single process? * Was it the size limit of a single session? * If it is for a session, what counts a session?

Re: fixing ulimit -n at system level ?

2009-09-09 Thread Javier Barroso
Hi, On Wed, Sep 9, 2009 at 4:14 PM, Boyd Stephen Smith Jr. wrote: > > In <4aa76c0d.8080...@esiee.fr>, Frank Bonnet wrote: > >Is there a way to fix at bootup for all users the ulimit -n statement > >(lenny) ? > > Yes. More specificly, maybe in /etc/security/limits.co

Re: fixing ulimit -n at system level ?

2009-09-09 Thread Boyd Stephen Smith Jr.
In <4aa76c0d.8080...@esiee.fr>, Frank Bonnet wrote: >Is there a way to fix at bootup for all users the ulimit -n statement >(lenny) ? Yes. >The default value is ridiculously 1024 If you think this is not a sane default, you should probably file a bug. -- Boyd S

fixing ulimit -n at system level ?

2009-09-09 Thread Frank Bonnet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Is there a way to fix at bootup for all users the ulimit -n statement (lenny) ? The default value is ridiculously 1024 Thanks -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http

understanding ulimit -r -m -v

2008-01-23 Thread Christopher Zimmermann
o hard. I still like huge address spaces and being able to realloc is nice. Completely turning off swap is not possible since this is a multiuser system and there are many sleeping processes lying around. I'll attach my testing program, in case someone would like to play around with ulimit. A

/etc/security/limits.conf: ulimit -l (max locked memory) reports 32 when it should be unlimited

2006-07-16 Thread Yasir Assam
nsure that no limits will apply to use users belonging to the group 'root'. However, when I run uname -a I get 32 kb instead of "unlimited" for the max locked memory: $ ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size

Re: Setting defaults for ulimit

2005-06-30 Thread Lee Braiden
On Thursday 30 Jun 2005 23:55, Paulo M C Aragão wrote: > I'm not sure if I understood you. Forgive my ignorance and please correct > me: > 1. There's a pam module that sets limits for a shell environment > 2. These limits are hardcoded but can be changed via >/etc/security/limits.conf Yep :)

Re: Setting defaults for ulimit

2005-06-30 Thread Paulo M C Aragão
Lee Braiden wrote on Jun, 30: > I think the defaults are just from the same pam module that includes that > file > as an example of what you can change :) I'm not sure if I understood you. Forgive my ignorance and please correct me: 1. There's a pam module that sets limits for a shell environm

Re: Setting defaults for ulimit

2005-06-30 Thread Lee Braiden
On Thursday 30 Jun 2005 23:37, Paulo M C Aragão wrote: > Lee Braiden wrote on Jun, 30: > Just looked at the file again and noticed that all entries are commented > out (start with #). So the defaults must be coming from somewhere else. > Any ideas ? I think the defaults are just from the same pam

Re: Setting defaults for ulimit

2005-06-30 Thread Paulo M C Aragão
Lee Braiden wrote on Jun, 30: > > Does anybody know where the defaults for ulimit are set ? > > I couldn't find anything in /etc. > > /etc/security/limits.conf Just looked at the file again and noticed that all entries are commented out (start with #). So the defau

Re: Setting defaults for ulimit

2005-06-30 Thread Paulo M C Aragão
Lee Braiden wrote on Jun, 30: > > Does anybody know where the defaults for ulimit are set ? > > I couldn't find anything in /etc. > > /etc/security/limits.conf Thanks, Lee. That's why 'grep -r ulimit /etc' couldn't find anything. Paulo -- To UNSU

Re: Setting defaults for ulimit

2005-06-30 Thread Ugo Bellavance
Paulo M C Aragão wrote: > Does anybody know where the defaults for ulimit are set ? > > I couldn't find anything in /etc. > > Thanks > Paulo > > Probably /etc/security/limits.conf -- Ugo -> Please don't send a copy of your reply by e-mail. I read the li

Re: Setting defaults for ulimit

2005-06-30 Thread Lee Braiden
On Thursday 30 Jun 2005 20:41, Paulo M C Aragão wrote: > Does anybody know where the defaults for ulimit are set ? > I couldn't find anything in /etc. /etc/security/limits.conf -- Lee. Please do not CC replies directly to me. I'll read them on the list.

Setting defaults for ulimit

2005-06-30 Thread Paulo M C Aragão
Does anybody know where the defaults for ulimit are set ? I couldn't find anything in /etc. Thanks Paulo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

ulimit problem

2005-01-04 Thread Dipl.-Ing. Martin Lorenz
Dear gurus on this list, I use linux since kernel 0.93 and went through quite a lot of ups and downs but this is something I simply don't understand: for running vmware I needed to increase the limit for open files. ok, ulimit -n is restricted for non-root. I could do a su , ulimit -n a

Re: Questions about /etc/profile ulimit -Hn and /etc/initscript & /etc/security/limits

2004-06-05 Thread Bob Proulx
r to a memory leak. You need to close files after you are through using them. > I was told > 1) change /etc/profile to add ulimit -Hn 65536 > 2)create /etc/initscript as described in man initscript, including > ulimit -Hn 65536 That would only be a temporary workaround. If yo

Questions about /etc/profile ulimit -Hn and /etc/initscript & /etc/security/limits

2004-06-03 Thread tripolar
When running java w/ another program I get this error message- java.io.IOException: Too many open files I was told 1) change /etc/profile to add ulimit -Hn 65536 2)create /etc/initscript as described in man initscript, including ulimit -Hn 65536 Someone else mentioned /etc/security/limits. Now I

Re: unable to increase process ulimit

2004-03-25 Thread Brian Brazil
On Wed, Mar 24, 2004 at 06:41:22PM -0600, Jonathan Rockway wrote: > Hello, everyone. I'm having a problem with eclipse spawning many > processes, causing me to go over my process limit. Since this is normal > behavior, I would like to increase my process limit. I have edited > /etc/security/limi

unable to increase process ulimit

2004-03-24 Thread Jonathan Rockway
Hello, everyone. I'm having a problem with eclipse spawning many processes, causing me to go over my process limit. Since this is normal behavior, I would like to increase my process limit. I have edited /etc/security/limits.conf, and uncommented the appropriate lines in /etc/pam.d/* (the lines

Re: ulimit, bash and ash

2004-01-30 Thread Paul Morgan
On Fri, 30 Jan 2004 11:08:59 -0500, Paul Morgan wrote: > On Fri, 30 Jan 2004 16:40:30 +0200, Hugo van der Merwe wrote: > >> I just noticed that in bash "ulimit -u" is the same as ash's >> "ulimit -p", while bash has another meaning for "ul

Re: ulimit, bash and ash

2004-01-30 Thread Paul Morgan
On Fri, 30 Jan 2004 16:40:30 +0200, Hugo van der Merwe wrote: > I just noticed that in bash "ulimit -u" is the same as ash's > "ulimit -p", while bash has another meaning for "ulimit -p" ... This > makes writing scripts quite difficult, I'd sa

Re: ulimit, bash and ash

2004-01-30 Thread Colin Watson
On Fri, Jan 30, 2004 at 04:40:30PM +0200, Hugo van der Merwe wrote: > I just noticed that in bash "ulimit -u" is the same as ash's > "ulimit -p", while bash has another meaning for "ulimit -p" ... This > makes writing scripts quite difficult, I'd sa

ulimit, bash and ash

2004-01-30 Thread Hugo van der Merwe
I just noticed that in bash "ulimit -u" is the same as ash's "ulimit -p", while bash has another meaning for "ulimit -p" ... This makes writing scripts quite difficult, I'd say you cannot then use ulimit in /bin/sh scripts, only in scripts specifically for

Re: Ulimit

2002-01-24 Thread Noah Massey
--begin quoted message from Ramiro Brito Willmersdorf, > > Hi, > > I'm running kde on debian woody. > Where can I change my resource limits? > I'm having problems with some programs that I think might be > caused by having ulimit set to: > > 3|[EMAIL PROTEC

Re: Ulimit

2002-01-24 Thread Dave Sherohman
On Thu, Jan 24, 2002 at 01:08:33PM -0200, Ramiro Brito Willmersdorf wrote: > 1) Editing /etc/security/limits.conf, addind the line: > > rbw softstack unlimited Had you tried also increasing the hard limit to unlimited? -- When we reduce our own liberties to stop terro

Ulimit

2002-01-24 Thread Ramiro Brito Willmersdorf
Hi, I'm running kde on debian woody. Where can I change my resource limits? I'm having problems with some programs that I think might be caused by having ulimit set to: 3|[EMAIL PROTECTED]:rbw $ulimit -s 8196 4|[EMAIL PROTECTED]:rbw $ I tried: 1) Editing /etc/security/limits.conf,

Re: ulimit -n problem

2001-11-15 Thread Mathias Gygax
On Don, Nov 15, 2001 at 11:31:00 +0800, Patrick Hsieh wrote: > Hello, lilo, > I'd like to test an overloaded apache with 2000 httpd processes running > as nobody on it. However, I can't ulimit the maximum number of open > file descriptors for "nobody" as well a

ulimit -n problem

2001-11-14 Thread Patrick Hsieh
Hello, I'd like to test an overloaded apache with 2000 httpd processes running as nobody on it. However, I can't ulimit the maximum number of open file descriptors for "nobody" as well as common users. Is there any way to achieve this? Thanks. -- Patrick Hsieh<[EMAIL

Re: ulimit and staroffice

2000-12-05 Thread Jonathan D. Proulx
Hi, not sure exactly, but I've seen soffice suckdown 215M virtual with 96M resident, while working with big files... It's a real pig, but still better than Windows atleast -Jon

ulimit and staroffice

2000-12-05 Thread Timo Benk
Hi, What ulimits need I to start StarOffice. I already adjusted the virtual memory to 80 Megs, but StarOffice hangs at the startup picture/screen. Any Ideas? These are my ulimits: core file size (blocks) 100 data seg size (kbytes) 102400 file size (blocks) unlimited max loc

exim's .forward ulimit

1999-10-20 Thread Pere Camps
Hi! Does anybody know how to limit the resorces available for the program that runs when somebody uses the ability of the .forward file to pass the contents of the email onto a program? TIA! -- p.

Re: ulimit

1999-09-03 Thread Jens B. Jorgensen
t; Stavros> ianyone knows why i can't find ulimit in debian potato? > > Because it's a builtin in various Bourne-style shells (bash, zsh, > pdksh), and therefore doesn't have its own package? -- Jens B. Jorgensen [EMAIL PROTECTED]

Re: ulimit

1999-09-03 Thread David Z. Maze
Stavros <[EMAIL PROTECTED]> writes: Stavros> ianyone knows why i can't find ulimit in debian potato? Because it's a builtin in various Bourne-style shells (bash, zsh, pdksh), and therefore doesn't have its own package? -- David Maze [EMAIL PROTECTED]

ulimit

1999-09-03 Thread Stavros
ianyone knows why i can't find ulimit in debian potato?

problem with ulimit on HP-UX 10.20

1999-03-26 Thread System Administrator
executed but the error is displayed. The error displayed is a follows : sh[28]: ulimit: The specified value exceeds the user's allowable limit. * Cron: The previous message is the standard output and standard error of one of your at com

ulimit -d

1998-11-10 Thread Michel Juillard
Regular users on my system (2.0.34) have a data seg size limited to 20480KB (as shown in ulimit -a). Only root can change the setting of its own shell to larger. Where can I change the system-wide setting? Where does 20480 comes from? (it's not in /etc/login.defs) Thanks M

bash ulimit (was swap space ...)

1998-11-09 Thread Michel Juillard
what I thaught was a swap space problem comes in fact from the bash ulimit data segment size set to 20480 Is this hardwired in bash? Can it be change system-wide? For the time beeing, I'm only able to change it in a shell run by root. Thanks M

where to set default ulimit values

1997-08-11 Thread Thomas Gebhardt
Hi, I am trying to enlarge the default ulimit -s (stack size) value on a debian 1.3.1 system. Obviously login isn't linked with libpam, so /etc/security/limits.conf isn't read. There is an ULIMIT entry in /etc/login.defs, but that seems to be ignored also. I can lower the ulimit -s lim

Re: where to set default ulimit values

1997-08-11 Thread Carey Evans
"Thomas Gebhardt" <[EMAIL PROTECTED]> writes: > So, where can I enlarge > the maximum stack size value, which somehow defaults to 8 MB? Write a wrapper around login. Hope that bash has no buffer overflows that can be exploited this way: - /usr/local/sbin/ulogin ---

Re: ulimit problem

1996-11-26 Thread Tan Wee Yeh
> Normally, limits are not set (ie they're set as the maximum available). If > the limits are lower than normal: > 1) either you have lshell installed, and there's a configuration file in etc > which tells you which are the limits, yep.. got it.. Thanks a lot. That's my first encounter with lshe

Re: ulimit problem

1996-11-26 Thread Philippe Troin
On Sat, 23 Nov 1996 00:36:14 +0800 Tan Wee Yeh ([EMAIL PROTECTED] g) wrote: > At least I understand how the prior case has only local > effect and that the user is limited by the hard limts. > > Now... is there anyway to raise the hard limit globally. Normally, limits are not set (ie they're se

Re: ulimit problem

1996-11-24 Thread Philippe Troin
> I have tried to first raise the hard-limit as root then > the soft-limit as the user after root logouts without > success. > > Same message > ulimit: cannot raise limit: Operation not permitted > is persistent. > > Just found that I can raise the ulimit for the

Re: ulimit problem

1996-11-23 Thread Philippe Troin
On Sat, 23 Nov 1996 11:17:22 +0800 Tan Wee Yeh ([EMAIL PROTECTED] ) wrote: > > On Fri, 22 Nov 1996 16:04:22 +0800 Tan Wee Yeh ([EMAIL PROTECTED] > > ) wrote: > > > Anyone knows how I can raise the limits? > > > It doesn't seem to be the problem with Hard/Soft > > > limits but more like priviledge

Re: ulimit problem

1996-11-23 Thread Philippe Troin
On Fri, 22 Nov 1996 16:04:22 +0800 Tan Wee Yeh ([EMAIL PROTECTED] ) wrote: > Hi, > > I'm trying to raise the ulimit as an ordinary user. > I don't seem to be able to raise any limit above some > ceiling, except when I'm root. > > Anyone knows how I can raise

ulimit problem

1996-11-22 Thread Tan Wee Yeh
Hi, I'm trying to raise the ulimit as an ordinary user. I don't seem to be able to raise any limit above some ceiling, except when I'm root. ~~~~ bash$ ulimit -a ... cpu time (seconds) 3600 ... bash$ ulimit -t 3601