From mboxrd@z Thu Jan 1 00:00:00 1970 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----CL7L2ZCD0HA30TVO8FD55VCU8MB49V" Content-Transfer-Encoding: 7bit From: mischief@9.offblast.org Date: Sat, 24 Jan 2015 22:59:18 -0800 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>, arisawa Message-ID: <0F748B67-FB11-464C-84FA-66B4E0B29918@9.offblast.org> Subject: Re: [9fans] protection against resource exhaustion Topicbox-Message-UUID: 3b5cadb0-ead9-11e9-9d60-3106f5b1d025 ------CL7L2ZCD0HA30TVO8FD55VCU8MB49V Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You would need to implement something like ulimits to fix process exhaustio= n, or some kind of rate limit=2E There are several forms of resource exhaus= tion in plan 9=2E One other that comes to mind is cat /dev/random prevents = other clients from making progress reading /dev/random, such as cpu=2E On January 24, 2015 10:16:32 PM PST, arisawa wrote: > >Hello 9fans > >my mac has a protection below: >-bash$ cat foo >#!/bin/sh >=2E/foo >-bash$ =2E/foo >=2E/foo: fork: Resource temporarily unavailable >-bash$=20 > >on the other hand, Plan 9 does not=2E >kernel is protected against such programs, however they are not killed=2E >therefore no new process can be created=2E > >does anyone have idea to fix the problem? > >Kenji Arisawa ------CL7L2ZCD0HA30TVO8FD55VCU8MB49V Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable You would need to implement something like ulimits= to fix process exhaustion, or some kind of rate limit=2E There are several= forms of resource exhaustion in plan 9=2E One other that comes to mind is = cat /dev/random prevents other clients from making progress reading /dev/ra= ndom, such as cpu=2E

On January 24, 2015 = 10:16:32 PM PST, arisawa <arisawa@ar=2Eaichi-u=2Eac=2Ejp> wrote:

Hello 9fans

my mac has a protection= below:
-bash$ cat foo
#!/bin/sh
=2E/foo
-bash$ =2E/foo=
=2E/foo: fork: Resource temporarily unavailable
-bash$
on the other hand, Plan 9 does not=2E
kernel is protected against s= uch programs, however they are not killed=2E
therefore no new process = can be created=2E

does anyone have idea to fix the problem?

Kenji Arisawa



------CL7L2ZCD0HA30TVO8FD55VCU8MB49V--