From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 11415138010 for ; Thu, 23 Aug 2012 09:50:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60505E072D; Thu, 23 Aug 2012 09:49:44 +0000 (UTC) Received: from icp-osb-irony-out9.external.iinet.net.au (icp-osb-irony-out9.external.iinet.net.au [203.59.1.226]) by pigeon.gentoo.org (Postfix) with ESMTP id A23A4E055E for ; Thu, 23 Aug 2012 09:47:45 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EANP7NVA6B49v/2dsb2JhbABFhgG0UYEHgiABAQUjZgsNCwICEgETAgIhNhkah2QDC6YMiTsNiU6BIYkEYxQBBQKDVQGCDYESA4hNizMBhy8ihQ+FB4JwgUsBAQc X-IronPort-AV: E=Sophos;i="4.80,299,1344182400"; d="scan'208";a="25622696" Received: from unknown (HELO moriah.localdomain) ([58.7.143.111]) by icp-osb-irony-out9.iinet.net.au with ESMTP; 23 Aug 2012 17:47:43 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 65EBE23133A for ; Thu, 23 Aug 2012 17:47:43 +0800 (WST) X-Virus-Scanned: amavisd-new at lan.localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.lan.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sJqOdXJyZSi3 for ; Thu, 23 Aug 2012 17:47:38 +0800 (WST) Received: from [192.168.48.1] (troll [192.168.48.1]) by moriah.localdomain (Postfix) with ESMTP id B575B231336 for ; Thu, 23 Aug 2012 17:47:38 +0800 (WST) Message-ID: <1345715258.16849.90.camel@troll> Subject: Re: [gentoo-user] xz memory hungry? From: Bill Kenworthy To: gentoo-user@lists.gentoo.org Date: Thu, 23 Aug 2012 17:47:38 +0800 In-Reply-To: References: <5035439E.6090707@binarywings.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 Content-Transfer-Encoding: 7bit Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Archives-Salt: ff931d9c-4354-4831-b8b1-236bcfc27061 X-Archives-Hash: 810e8d5bc787d833b39e383affff5279 On Thu, 2012-08-23 at 09:37 +0100, Jorge Almeida wrote: > On Thu, Aug 23, 2012 at 4:34 AM, Paul Hartman > wrote: > > On Wed, Aug 22, 2012 at 7:24 PM, Jorge Almeida wrote: > >> Well, I found the problem: ulimit problem. Not the first time this crap bites > >> me, but I always forget. I just wish this was better documented, somewhere. > > > > I tried to use ulimit to change stack size system-wide once, to reduce > > RAM usage on 256M box, and it resulted in strange problems like this. > > I changed it back to default and leave it alone since then except for > > specific services because I don't fully understand the magic that > > happens inside the box. :) > > > Last time I had a problem like this I spent a lot of time googling about > ulimit/setting_limits/etc and found _nothing_ worth mentioning. This time I > run "ulimit -v unlimited", but the question is who put the former values > there? Some hard-coded default? I couldn't find anything in init scripts nor > in bash rc files. I know that on logout the value is lost (I had to run ulimit > again on chrooting). What is the appropriate file to put "ulimit -v unlimited" > in? Perhaps ~/.bash_profile? And how can root set different hard limits for > different users? Maybe some bash guru will step in?:) > > J.A. > probably rc.conf, or maybe login.defs depending on per user/or everyone BillK troll ~ # grep limit /etc/* /etc/freetds.conf: # 'text size' to a more reasonable limit /etc/jwhois.conf: rwhois-limit = 10; /etc/login.defs:# Enable setting of ulimit, umask, and niceness from passwd gecos field. /etc/login.defs:# a ":" delimited list of device names. Root logins will be allowed only /etc/login.defs:# If defined, ":" delimited list of "message of the day" files to /etc/login.defs:# ULIMIT Default "ulimit" value. /etc/login.defs:# (now it works with setrlimit too; ulimit is in 512-byte units) /etc/login.defs:# It supports passwords of unlimited length and longer salt strings. /etc/login.defs:# with the same group ID, to avoid limitation of the line length in the /etc/lynx.cfg:# For instance, if SESSION_LIMIT is 250, a per-session limit of 250 entries of /etc/lynx.cfg:# There is no fixed limit on the number of entries which can be restored; /etc/lynx.cfg:# It is limited only by available memory. /etc/lynx.cfg:# we need to limit the charset in outgoing mail to reduce /etc/lynx.cfg:# The news reading facility in Lynx is quite limited. Lynx does not provide a /etc/lynx.cfg:# The posting facility in Lynx is quite limited. Lynx does not provide a /etc/lynx.cfg:# COOKIE_ACCEPT_DOMAINS and COOKIE_REJECT_DOMAINS are comma-delimited lists /etc/lynx.cfg:# COOKIE_QUERY_INVALID_DOMAINS are comma-delimited lists of domains. /etc/lynx.cfg:# MAX_COOKIES_BUFFER are limits on the total number of cookies for each domain, /etc/lynx.cfg:# globally, and the per-cookie buffer size. These limits are by default large Binary file /etc/prelink.cache matches /etc/rc.conf:# Pass ulimit parameters /etc/rc.conf:#rc_ulimit="-u 30" /etc/smartd.conf:# -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit /etc/wgetrc:# default quota is unlimited. troll ~ #