linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: suspend processes at load
@ 2001-03-19 20:06 happz
  2001-04-19 20:14 ` James A. Sutherland
  0 siblings, 1 reply; 4+ messages in thread
From: happz @ 2001-03-19 20:06 UTC (permalink / raw)
  To: linux-mm

What about this: give to process way how to tell kernel "it is not
good to suspend me, because there are process' that depend on me and
wouldn't be blocked." Syscall or /proc filesystem could be used.

It is not the way how to say which process should be suspended but a
way how to say which could NOT - usefull for example for X server, may
be some daemons, aso.

Milos Prchlik


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

* Re: suspend processes at load
  2001-03-19 20:06 suspend processes at load happz
@ 2001-04-19 20:14 ` James A. Sutherland
  2001-04-20  4:11   ` Eric W. Biederman
  0 siblings, 1 reply; 4+ messages in thread
From: James A. Sutherland @ 2001-04-19 20:14 UTC (permalink / raw)
  To: happz; +Cc: linux-mm

On Mon, 19 Mar 2001 21:06:55 +0100, you wrote:

>What about this: give to process way how to tell kernel "it is not
>good to suspend me, because there are process' that depend on me and
>wouldn't be blocked." Syscall or /proc filesystem could be used.
>
>It is not the way how to say which process should be suspended but a
>way how to say which could NOT - usefull for example for X server, may
>be some daemons, aso.

Possibly; TBH, I don't think it's worth it. Remember, "suspending" X
would just stop your mouse moving etc. for (e.g.) 5 seconds; in fact,
that should block most graphical processes, which may well resolve the
thrashing in itself!


James.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

* Re: suspend processes at load
  2001-04-19 20:14 ` James A. Sutherland
@ 2001-04-20  4:11   ` Eric W. Biederman
  2001-04-20  6:35     ` James A. Sutherland
  0 siblings, 1 reply; 4+ messages in thread
From: Eric W. Biederman @ 2001-04-20  4:11 UTC (permalink / raw)
  To: James A. Sutherland; +Cc: happz, linux-mm

"James A. Sutherland" <jas88@cam.ac.uk> writes:

> On Mon, 19 Mar 2001 21:06:55 +0100, you wrote:
> 
> >What about this: give to process way how to tell kernel "it is not
> >good to suspend me, because there are process' that depend on me and
> >wouldn't be blocked." Syscall or /proc filesystem could be used.
> >
> >It is not the way how to say which process should be suspended but a
> >way how to say which could NOT - usefull for example for X server, may
> >be some daemons, aso.
> 
> Possibly; TBH, I don't think it's worth it. Remember, "suspending" X
> would just stop your mouse moving etc. for (e.g.) 5 seconds; in fact,
> that should block most graphical processes, which may well resolve the
> thrashing in itself!

Actually we should only apply suspension and the like to SCHED_OTHER.
The realtime scheduling classes should be left as is.  If an
application is safe to run realtime, it should be o.k. in the
thrashing situation. 

Also actually suspending a realtime process would be a violation of
the realtime scheduling guarantees, where with SCHED_OTHER you can be
expected to be suspended at any time.

Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

* Re: suspend processes at load
  2001-04-20  4:11   ` Eric W. Biederman
@ 2001-04-20  6:35     ` James A. Sutherland
  0 siblings, 0 replies; 4+ messages in thread
From: James A. Sutherland @ 2001-04-20  6:35 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: happz, linux-mm

On 19 Apr 2001 22:11:28 -0600, you wrote:

>"James A. Sutherland" <jas88@cam.ac.uk> writes:
>
>> On Mon, 19 Mar 2001 21:06:55 +0100, you wrote:
>> 
>> >What about this: give to process way how to tell kernel "it is not
>> >good to suspend me, because there are process' that depend on me and
>> >wouldn't be blocked." Syscall or /proc filesystem could be used.
>> >
>> >It is not the way how to say which process should be suspended but a
>> >way how to say which could NOT - usefull for example for X server, may
>> >be some daemons, aso.
>> 
>> Possibly; TBH, I don't think it's worth it. Remember, "suspending" X
>> would just stop your mouse moving etc. for (e.g.) 5 seconds; in fact,
>> that should block most graphical processes, which may well resolve the
>> thrashing in itself!
>
>Actually we should only apply suspension and the like to SCHED_OTHER.
>The realtime scheduling classes should be left as is.  If an
>application is safe to run realtime, it should be o.k. in the
>thrashing situation. 
>
>Also actually suspending a realtime process would be a violation of
>the realtime scheduling guarantees, where with SCHED_OTHER you can be
>expected to be suspended at any time.

Yes, I was taking that for granted; apart from anything else, realtime
processes are "supposed to" (according to the manpages, anyway!) be
mlock()ed, which makes suspending them pointless: it won't free any
memory anyway.


James.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

end of thread, other threads:[~2001-04-20  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-19 20:06 suspend processes at load happz
2001-04-19 20:14 ` James A. Sutherland
2001-04-20  4:11   ` Eric W. Biederman
2001-04-20  6:35     ` James A. Sutherland

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