Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2000 17:19:36 +0300
From:      Krassimir Slavchev <krassi@bulinfo.net>
To:        Lowell Gilbert <lowell@world.std.com>, freebsd-questions@freebsd.org
Subject:   Re: Memory usage?
Message-ID:  <3958B7F7.225ADFCE@bulinfo.net>
References:  <395743C5.9E321A7F@bulinfo.net> <444s6f8e9k.fsf@lowellg.ne.mediaone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------msE4B4BAC393D2E079746BD2AD
Content-Type: multipart/alternative;
 boundary="------------8D0EC25CBC0C3D955424FB2B"


--------------8D0EC25CBC0C3D955424FB2B
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit


Lowell Gilbert wrote:

> Krassimir Slavchev <krassi@bulinfo.net> writes:
>
> > I use FreeBSD 3.4 (128Mb RAM and 150Mb swap) and have problem with perl.
> >
> > Some older perl scripts executed from apache server eat memory in a few
> > minutes.
> > I get:
> > /kernel: swap_pager: out of swap space
> > and other processes died with coredump.
> > I rewrite this perl scripts and solve the problem.
> >
> > How can I limit max memory usage per a single process? It is possible?
>
> Process limits are available, and are usually set by login classes.
> See the man page for login.conf.

Yes, but limits applied if "user" use login. If I do su "user" or start any
process
as "user", limits have no effect.
How can set limits to "user"?
In my case I want to set memory limits to user nobody which execute perl.

Best Regards

--
 Krassimir Slavchev           Bulinfo Ltd.
 krassi@bulinfo.net           (+359-2)963-3652
 http://www.bulinfo.net       (+359-2)963-3764



--------------8D0EC25CBC0C3D955424FB2B
Content-Type: text/html; charset=koi8-r
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<br>Lowell Gilbert wrote:
<blockquote TYPE=CITE>Krassimir Slavchev &lt;krassi@bulinfo.net> writes:
<p>> I use FreeBSD 3.4 (128Mb RAM and 150Mb swap) and have problem with
perl.
<br>>
<br>> Some older perl scripts executed from apache server eat memory in
a few
<br>> minutes.
<br>> I get:
<br>> /kernel: swap_pager: out of swap space
<br>> and other processes died with coredump.
<br>> I rewrite this perl scripts and solve the problem.
<br>>
<br>> How can I limit max memory usage per a single process? It is possible?
<p>Process limits are available, and are usually set by login classes.
<br>See the man page for login.conf.</blockquote>
Yes, but limits applied if "user" use login. If I do su "user" or start
any process
<br>as "user", limits have no effect.
<br>How can set limits to "user"?
<br>In my case I want to set memory limits to user nobody which execute
perl.
<p>Best Regards
<pre>--&nbsp;
&nbsp;Krassimir Slavchev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bulinfo Ltd.
&nbsp;krassi@bulinfo.net&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (+359-2)963-3652
&nbsp;<A HREF="http://www.bulinfo.net">http://www.bulinfo.net</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (+359-2)963-3764</pre>
&nbsp;</html>

--------------8D0EC25CBC0C3D955424FB2B--

--------------msE4B4BAC393D2E079746BD2AD
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIHwQYJKoZIhvcNAQcCoIIHsjCCB64CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
Bb0wggKhMIICCqADAgECAgMCdTowDQYJKoZIhvcNAQEEBQAwgZQxCzAJBgNVBAYTAlpBMRUw
EwYDVQQIEwxXZXN0ZXJuIENhcGUxFDASBgNVBAcTC0R1cmJhbnZpbGxlMQ8wDQYDVQQKEwZU
aGF3dGUxHTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25h
bCBGcmVlbWFpbCBSU0EgMTk5OS45LjE2MB4XDTAwMDQxOTEwMzAzN1oXDTAxMDQxOTEwMzAz
N1owRDEfMB0GA1U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iG9w0BAQEFAASBgHAhP46k0/3eh1loVAY+FxV3uVluaDP3PgAjlSIE
4WrkisV4hag8hfUegEKvedZt9onKbS8c0spXXebIBCA8F13rSi+FUd++DP90G0erSmi9eVUm
o4SXVuvJUBaiXsGs+kHa6+sDSSnnaVICsutQQpR8ErxTsrs6P4xJA3PTV5Du
--------------msE4B4BAC393D2E079746BD2AD--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3958B7F7.225ADFCE>