Article View: news.software.nntp
Article #10864Re: ME cant remalloc...
From: Vince Vielhaber
Date: Fri, 13 Sep 1996 00:00
Date: Fri, 13 Sep 1996 00:00
58 lines
2572 bytes
2572 bytes
In article <51bkhe$8vs@nnrp1.news.primenet.com>, nils@primenet.com says...
>
>Lyndon Levesley <lyndon@xara.net> wrote:
>> in sh, you can use the ulimit command to perform your limitting, or
>> (if for some reason this won't work) you can try the following dirty
>> hack :
>
>> [ sh code here ]
>> /bin/csh -f <<EOF
>> # Let us use more open files
>> limit descriptors 1024
>> # Stop malloc errors - unlimit my max datasize
>> unlimit datasize
>> EOF
>> [ back to sh code here ]
>
>This won't work. Resource limits are per-process (and inherited by
>their children), so the limit increases would only take effect
>for the csh process, which doesn't actually execute anything.
>
>Just use:
>
> [ sh code here ]
> # Let us use more open files
> ulimit -n 1024
> # Stop malloc errors - unlimit my max datasize
> ulimit -d unlimited
> [ back to sh code here ]
>
And unfortunately this won't either. Not because it's incorrect, but
because ulimit doesn't exist on this system!
Using Lyndon's method (kinda) I came up with this small wrapper to
handle it. I called this script startnews:
#! /bin/csh
limit openfiles 1024
unlimit datasize
rc.news
The number of openfiles maxes out at 360 and datasize at ~131 MB, but
that's ALOT better than where it was!
Thanks to you both!
Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: vev@michvhf.com flame-mail: /dev/null
Database Manager Michigan Area Repeater Council
# include <std/disclaimers.h> TEAM-OS2
==========================================================================
Technical Details
Message-ID:
<51ceqj$649@marge.eaglequest.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com>Show Full Headers
Complete Article Headers
Message-ID: <51ceqj$649@marge.eaglequest.com> Subject: Re: ME cant remalloc... Date: Fri, 13 Sep 1996 00:00:00 +0000 From: vev@michvhf.com (Vince Vielhaber) References: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 180443235 Content-type: Text/Plain; charset=US-ASCII Organization: What, me organized? Mime-version: 1.0 Newsgroups: news.software.nntp