mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Kacur <jkacur@rogers.com>
To: Jim Nance <jlnance@sdf.lonestar.org>
Cc: Dave Jones <davej@redhat.com>, Willy Tarreau <willy@w.ods.org>,
	Andrew Morton <akpm@osdl.org>, Ricky Beam <jfbeam@bluetronic.net>,
	nico-kernel@schottelius.org, linux-kernel@vger.kernel.org
Subject: Re: /proc/cpuinfo format - arch dependent!
Date: Sun, 08 May 2005 12:11:14 -0400	[thread overview]
Message-ID: <1115568673.5536.18.camel@linux.site> (raw)
In-Reply-To: <20050508012521.GA24268@SDF.LONESTAR.ORG>

On Sat, 2005-05-07 at 21:25, Jim Nance wrote:
> On Sat, May 07, 2005 at 01:20:05PM -0400, Dave Jones wrote:
> > On Sat, May 07, 2005 at 07:05:56PM +0200, Willy Tarreau wrote:
> 
> >  > system "hey, I'd like this type of workload, how many process should
> >  > I start, and where should I bind them ?".
> > 
> > I think generalising this and having a method to do this in the kernel
> > is a much better idea than each application parsing this themselves.
> > Things are only getting more and more complex as time goes on,
> > and I don't trust application developers to get it right.
> 
> As a developer of a multiprocess/multithreaded application I can assure
> you that you are right not to trust application developers to get this
> right.  The idea that a programmer understands the behavior of the
> applications they write is largely a myth.  Furthermore, I suspect
> that SMT will evolve in directions that make the idea of a processor
> more and more fuzzy.  I don't think it is wise to construct any
> interface that suggests knowing the hardware details is good, or that
> processes should be bound by userland.  Certainly it is sometimes
> necessary for userland to do this, but we should look at that as a
> bug in the kernel.
> 
> Thanks,
> 
> Jim

Aw c'mon. Don't we believe in the C programming philosphy of trusting
the programmer? You know, give them enough rope to hang themselves?
Personally, I don't care because I can parse cpuid and the like directly
myself, but examples of legitimate uses for this knowledge are
compilers, jvms, and threading libraries, all which although lowlevel,
are technically userland. I don't think it's our job to protect the user
from themselves, it's to give them a reasonable default, and the
interfaces to take advantage of the tricker stuff for special purposes
if they wish.


  reply	other threads:[~2005-05-08 16:09 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 12:15 Nico Schottelius
2005-04-19 13:24 ` Lennart Sorensen
2005-04-19 19:17   ` Lee Revell
2005-04-19 20:00     ` Nico Schottelius
2005-04-19 20:02       ` David S. Miller
2005-04-19 20:12       ` Lennart Sorensen
2005-04-19 20:42       ` Lee Revell
2005-04-19 20:54         ` Nico Schottelius
2005-04-19 21:12           ` Grzegorz Kulewski
2005-04-20 20:31   ` Ralf Baechle
2005-05-07  3:37 ` Ricky Beam
2005-05-07  4:01   ` Stefan Smietanowski
2005-05-07  7:55     ` Ricky Beam
2005-05-07 17:51       ` Stefan Smietanowski
2005-05-07 18:05         ` Ricky Beam
2005-05-07 18:46           ` Dr. David Alan Gilbert
2005-05-07  4:14   ` Andrew Morton
2005-05-07  7:58     ` Willy Tarreau
2005-05-07 16:53       ` Dave Jones
2005-05-07 17:05         ` Willy Tarreau
2005-05-07 17:20           ` Dave Jones
2005-05-07 17:18             ` Willy Tarreau
2005-05-08  1:25             ` Jim Nance
2005-05-08 16:11               ` John Kacur [this message]
2005-05-09 18:14               ` Bill Davidsen
2005-05-09 20:09                 ` Chris Friesen
2005-05-09 20:26                   ` Lennart Sorensen
2005-05-09 21:25                     ` Brian O'Mahoney
2005-05-10 16:21                   ` Bill Davidsen
2005-05-10 16:34                     ` Chris Friesen
2005-05-10  2:23                 ` Jim Nance
2005-05-10  4:12                   ` Willy Tarreau
2005-05-10  7:13                   ` Paul Jackson
2005-05-10 16:34                   ` Bill Davidsen
2005-05-07 17:54       ` Stefan Smietanowski
2005-05-07 18:05         ` Willy Tarreau
2005-05-09 18:03     ` Bill Davidsen
2005-05-10  7:21     ` Paul Jackson
2005-05-10 14:38       ` Lennart Sorensen
2005-05-10 16:37         ` Bill Davidsen
2005-05-09 18:00   ` Bill Davidsen
2005-05-09 19:58     ` Lennart Sorensen
2005-05-10 16:49       ` Bill Davidsen
     [not found] <3UZS7-5ue-17@gated-at.bofh.it>
     [not found] ` <41ouh-4QE-1@gated-at.bofh.it>
     [not found]   ` <41oXl-5hl-7@gated-at.bofh.it>
     [not found]     ` <41sxX-8cN-11@gated-at.bofh.it>
     [not found]       ` <41BL4-7l7-15@gated-at.bofh.it>
2005-05-07 23:33         ` Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
2005-05-08 13:24           ` Andi Kleen

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=1115568673.5536.18.camel@linux.site \
    --to=jkacur@rogers.com \
    --cc=akpm@osdl.org \
    --cc=davej@redhat.com \
    --cc=jfbeam@bluetronic.net \
    --cc=jlnance@sdf.lonestar.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nico-kernel@schottelius.org \
    --cc=willy@w.ods.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

Powered by JetHome