public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* guarantee_memory() syscall?
@ 2000-10-29 13:03 Raul Miller
  2000-10-29 13:31 ` Eric W. Biederman
  2000-10-29 14:56 ` Alan Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Raul Miller @ 2000-10-29 13:03 UTC (permalink / raw)
  To: linux-kernel

Can anyone tell me about the viability of a guarantee_memory() syscall?

[I'm thinking: it would either kill the process, or allocate all virtual
memory needed for its shared libraries, buffers, allocated memory, etc.
Furthermore, it would render this process immune to the OOM killer,
unless it allocated further memory.]

Thanks,

-- 
Raul
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: guarantee_memory() syscall?
  2000-10-29 13:03 guarantee_memory() syscall? Raul Miller
@ 2000-10-29 13:31 ` Eric W. Biederman
  2000-10-29 18:34   ` James Sutherland
  2000-10-29 14:56 ` Alan Cox
  1 sibling, 1 reply; 4+ messages in thread
From: Eric W. Biederman @ 2000-10-29 13:31 UTC (permalink / raw)
  To: Raul Miller; +Cc: linux-kernel

Raul Miller <moth@magenta.com> writes:

> Can anyone tell me about the viability of a guarantee_memory() syscall?
> 
> [I'm thinking: it would either kill the process, or allocate all virtual
> memory needed for its shared libraries, buffers, allocated memory, etc.
> Furthermore, it would render this process immune to the OOM killer,
> unless it allocated further memory.]

Except for the OOM killer semantics mlockall already exists.

Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: guarantee_memory() syscall?
  2000-10-29 13:03 guarantee_memory() syscall? Raul Miller
  2000-10-29 13:31 ` Eric W. Biederman
@ 2000-10-29 14:56 ` Alan Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Cox @ 2000-10-29 14:56 UTC (permalink / raw)
  To: Raul Miller; +Cc: linux-kernel

> Can anyone tell me about the viability of a guarantee_memory() syscall?
> [I'm thinking: it would either kill the process, or allocate all virtual
> memory needed for its shared libraries, buffers, allocated memory, etc.
> Furthermore, it would render this process immune to the OOM killer,
> unless it allocated further memory.]

Hack mode on:

Allocate an array of pages the required size and attach them to a process via
a device and mmap(). Basically you are just wanting to do private unswappable
pages so grab free pages in kernel memory and mmap them


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: guarantee_memory() syscall?
  2000-10-29 13:31 ` Eric W. Biederman
@ 2000-10-29 18:34   ` James Sutherland
  0 siblings, 0 replies; 4+ messages in thread
From: James Sutherland @ 2000-10-29 18:34 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: Raul Miller, linux-kernel

On 29 Oct 2000, Eric W. Biederman wrote:

> Raul Miller <moth@magenta.com> writes:
> 
> > Can anyone tell me about the viability of a guarantee_memory() syscall?
> > 
> > [I'm thinking: it would either kill the process, or allocate all virtual
> > memory needed for its shared libraries, buffers, allocated memory, etc.
> > Furthermore, it would render this process immune to the OOM killer,
> > unless it allocated further memory.]
> 
> Except for the OOM killer semantics mlockall already exists.

More to the point, "immortality" is NOT a desirable "feature": the OOM
killer just kills things which must be killed to protect the overall
system. We'll have a finely adjustable memory killer daemon soon, which
will be a better solution.


James.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-29 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-29 13:03 guarantee_memory() syscall? Raul Miller
2000-10-29 13:31 ` Eric W. Biederman
2000-10-29 18:34   ` James Sutherland
2000-10-29 14:56 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox