|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
wget: memory exhausted ..
Hi all !
I'm using OpenBSD current Code:
kern.version=OpenBSD 5.4 (GENERIC.MP) #44: Tue Jul 30 12:13:32 MDT 2013 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP Code:
wget: memory exhausted Is there any way to prevent this from happening -other than upgrading ram- ? Regards. |
|
|||
That's exactly what I've issued :
Code:
wget --no-proxy -r -m -k --no-parent |
|
|||
Quote:
$ user info xyzzy ...where the active username is "xyzzy". Your username will most likely be different. Note that the login.conf(5) manpage will indicate that modifications can be done to class "staff". If your active user is not in class "staff" (which can be determined by the user(8) command given above...), use chpass(1) or vipw(8) as root to do so. Last edited by ocicat; 3rd August 2013 at 05:07 AM. Reason: clarity |
|
|||
Thanks ocicat
'user info' doesn't show relevent info I don't have a ~/login.conf and /etc/login.conf is still virgin .. should I set memoryuse capability in ~/login.conf or /etc/login.conf per user ?? |
|
|||
user info me
Code:
login me passwd * uid 1000 groups me wheel change NEVER class staff gecos me dir /home/me shell /bin/sh expire NEVER |
|
|||
Two recent threads on ports@ & openbsd-newbies@ may be of interest to readers of this thread:In particular, both discuss crashes in Firefox, but discussion is applicable to any user application which attempts to consume more memory than what is allocated to a login class.
|
|
|||
Thanks.
I have ulimit -c 0 in ~/.profile .. could it be the cause ? |
|
||||
I have time to expand on my "No", above.
Previously, you asked how to eliminate the production of core(5) files, as you had no interest in doing your own debugging of applications. Alphalutra1 gave you an example ulimit shell command, which you dutifully copied and pasted into your $HOME/.profile script. Whether or not a .core file is produced after an application fails has nothing to do with the application's use of addressable virtual memory. As I stated previously, each process in OpenBSD/i386 has a 4GB address space, with 2GB of that available to the process for application and data. That's all any individual process gets to use. Once you have taken the time to confirm you are using that 2GB maximum datasize, rather than the 512M default starting value for the "staff" class, if you still have application failures you have three choices:
Last edited by jggimi; 8th August 2013 at 05:46 PM. Reason: typo, clarity, and correction of 4GB (32 bit) address space with 2GB datasize. |
|
|||
ulimit -a
Code:
time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) 0 data(kbytes) 524288 stack(kbytes) 4096 lockedmem(kbytes) 682913 memory(kbytes) 2045756 nofiles(descriptors) 512 processes 128 Thank you Teacher jggimi ! |
|
||||
Similar problem but on a different OS: I was having trouble with emacs on NetBSD, and after some googling found that setting the stack ( -s flag ) to 8192 (from 2048) did the trick. Unfortunately firefox and seamonkey weren't happy with that. Anyway, you could try playing with -s and see if it helps. It's easy to do, but not guaranteed to work.
|
|
||||
Let me try again, and I will try to be as clear as I can.
I showed you an excerpt from /etc/login.conf for i386. There are two lines that mention values for datasize. Please note, one says "cur" for "current", the other says "max" for "maximum":I also wrote: Quote:
Quote:
I have a user in the staff class using the ksh(1) shell, and I set the datasize using ulimit -d to 2GB. I then try to add one more MB and receive a failure notice. Quote:
Last edited by jggimi; 9th August 2013 at 12:14 PM. Reason: typo. Later, added highlighting to the "howto" |
|
|||
Thank you very much jggimi ! now it's better .. I've set ulimit in my .profile .. what if I want to set it for all users ? some way other than editing their respective .profiles ?
Hi dop ! Thank you for the tip .. I'll remember to use it when on NetBSD. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
why do some websites refuse wget -r -m -k --no-parent ? | daemonfowl | General software and network | 0 | 10th June 2013 05:18 PM |
hello, how BSD reboot but keep memory | misssir | FreeBSD General | 8 | 11th October 2011 02:43 PM |
Memory limit | jaax | NetBSD General | 2 | 19th February 2011 11:21 AM |
World shrugs as IPv4 addresses finally exhausted | J65nko | News | 0 | 2nd February 2011 10:23 PM |
wget | Nk2Network | OpenBSD Packages and Ports | 3 | 27th February 2009 01:40 PM |