From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Richard Nairn" Subject: Re: Question about program run out of memory Date: Tue, 26 Aug 2008 20:37:19 -0600 Message-ID: References: <963533.65471.qm@web15605.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <963533.65471.qm@web15605.mail.cnb.yahoo.com> Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8"; format="flowed delsp=yes" To: =?utf-8?B?5qKB5pmo?= , linux-admin@vger.kernel.org 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, =E6=A2=81=E6=99=A8 wrote: > hi, > I encountered such a problem when a program have some bug that it wil= l =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! > > > > ___________________________________________________________ > =E9=9B=85=E8=99=8E=E9=82=AE=E7=AE=B1=EF=BC=8C=E6=82=A8=E7=9A=84=E7=BB= =88=E7=94=9F=E9=82=AE=E7=AE=B1=EF=BC=81 > 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 -- 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