From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?gb2312?B?wbqzvw==?= Subject: Re: Question about program run out of memory Date: Wed, 27 Aug 2008 12:55:21 +0800 (CST) Message-ID: <241721.31994.qm@web15608.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-9" To: Richard Nairn , linux-admin@vger.kernel.org Thank you, I tried "ulimit -Sv 1024000" successful, finally I wrote thi= s line "* hard as 1024000" into /etc/security/limits.conf, so it can be= apply when system booting. > Check out ulimit. It controls a number of parameters such as maximum = =20 > memory size, core dump size, open file descriptors... >>On Tue, 26 Aug 2008 19:16:35 -0600, =C1=BA=B3=BF wrote: >> hi, >> I encountered such a problem when a program have some bug that it wi= ll =20 >> ask for endless memory, until the system completely dead, I can only= =20 >> reboot it. Can I do some restriction of the max memory per process? = =20 >> Thanks! ___________________________________________________________=20 =D1=C5=BB=A2=D3=CA=CF=E4=A3=AC=C4=FA=B5=C4=D6=D5=C9=FA=D3=CA=CF=E4=A3=A1= =20 http://cn.mail.yahoo.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html