public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Chris Siebenmann <cks@utcc.utoronto.ca>
Cc: Linux Kernel mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux scheduler (scheduling) questions vs threads
Date: Sat, 03 Jul 2004 09:57:13 -0400	[thread overview]
Message-ID: <40E6BB39.4080405@tmr.com> (raw)
In-Reply-To: <04Jul1.223441edt.41896@gpu.utcc.utoronto.ca>

Chris Siebenmann wrote:
> You write:
> | Ingo Molnar wrote:
> [...]
> | > so the normal Linux scheduling policy applies to 'threads' too. [...]
> [...]
> | On a multi-user machine this may result in undesirable behaviour, since 
> | each thread seems to compete for resources and the machine may get VERY 
> | slow if someone deos something anti-social.
> 
>  This is nothing unique to threads; the same problem appears if a
> program (or a user) uses a bunch of CPU-eating processes. I imagine
> that any real solution will have to be per-user 'beancounting' and
> limits, which have yet to make it into the Linux kernel.

Actually, yes it is. While students can be warned about the results of 
fork bombing a system, both in terms of what happens to the system and 
to their access, it's far less obvious that starting a program which 
does a lot of threads is equally bad behaviour.

The desirability for per-user scheduling is also shown by the student 
who build a large project with "-j4" as a make option and "-pipe" as a 
compile option. Yes, it makes the program complete sooner, and it 
generally is done with no malice.

Hopefully some form of this will appear in the 2.7 kernel, although past 
discussions in several places have resulted in more heat than light on 
the topic.


-- 
bill davidsen <davidsen@tmr.com>
   CTO TMR Associates, Inc
   Doing interesting things with small computers since 1979

       reply	other threads:[~2004-07-03 13:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <04Jul1.223441edt.41896@gpu.utcc.utoronto.ca>
2004-07-03 13:57 ` Bill Davidsen [this message]
2004-07-03 15:18   ` Linux scheduler (scheduling) questions vs threads Paul Rolland
2004-07-01 11:56 Povolotsky, Alexander
2004-07-01 12:06 ` Ingo Molnar
2004-07-01 21:41   ` Bill Davidsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E6BB39.4080405@tmr.com \
    --to=davidsen@tmr.com \
    --cc=cks@utcc.utoronto.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox