From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kwxpj-0001To-2A for garchives@archives.gentoo.org; Mon, 03 Nov 2008 11:42:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0718BE0366; Mon, 3 Nov 2008 11:42:59 +0000 (UTC) Received: from aa011msr.fastwebnet.it (aa011msr.fastwebnet.it [85.18.95.71]) by pigeon.gentoo.org (Postfix) with ESMTP id B8ADEE0366 for ; Mon, 3 Nov 2008 11:42:58 +0000 (UTC) Received: from [37.1.3.90] (37.1.3.90) by aa011msr.fastwebnet.it (8.0.013.8) (authenticated as cyclopia) id 49086D4000B07645 for gentoo-user@lists.gentoo.org; Mon, 3 Nov 2008 12:42:56 +0100 Message-ID: <490EE4F4.30709@gmail.com> Date: Mon, 03 Nov 2008 12:48:04 +0100 From: "b.n." User-Agent: Thunderbird 2.0.0.17 (X11/20081008) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] limit maximum memory size of any process References: <490ED140.8030109@realss.com> In-Reply-To: <490ED140.8030109@realss.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: e7e49b2e-5285-4f28-8e7d-e9bea66924e5 X-Archives-Hash: d35e2f323d60f160db6b8254597c0d62 Zhang Weiwu ha scritto: > So: is ulimit the solution? If so, what option should I set? My current > ulimit is: > > $ ulimit -a > core file size (blocks, -c) 0 > data seg size (kbytes, -d) 300000 > scheduling priority (-e) 0 > file size (blocks, -f) unlimited > pending signals (-i) 3072 > max locked memory (kbytes, -l) 32 > max memory size (kbytes, -m) 300 > open files (-n) 1024 > pipe size (512 bytes, -p) 8 > POSIX message queues (bytes, -q) 819200 > real-time priority (-r) 0 > stack size (kbytes, -s) 8192 > cpu time (seconds, -t) unlimited > max user processes (-u) 3072 > virtual memory (kbytes, -v) unlimited > file locks (-x) unlimited On my machine I use "ulimit -v" and it works- however never tried it inside a script. m.