public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Hensema <erik@hensema.net>
To: Ricky Beam <jfbeam@bluetopia.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROPOSAL: /proc standards (was dot-proc interface [was: /proc
Date: Wed, 7 Nov 2001 17:08:36 +0100	[thread overview]
Message-ID: <20011107170836.A4782@hensema.net> (raw)
In-Reply-To: <slrn9uglko.esu.spamtrap@dexter.hensema.xs4all.nl> <Pine.GSO.4.33.0111061648040.17287-100000@sweetums.bluetronic.net>
In-Reply-To: <Pine.GSO.4.33.0111061648040.17287-100000@sweetums.bluetronic.net>; from jfbeam@bluetopia.net on Tue, Nov 06, 2001 at 05:09:28PM -0500

On Tue, Nov 06, 2001 at 05:09:28PM -0500, Ricky Beam wrote:
> On 6 Nov 2001, Erik Hensema wrote:
> >When /proc is turned into some binary interface we'd need to create little
> >programs which read the binary values from the files and output them on
> >their stdout, which is quite cumbersome, IMHO.
> 
> So, do you run 'free' or 'cat /proc/meminfo'?  'uptime' or 'cat /proc/uptime'?
> 'netstat', 'route', 'arp', etc. or root through /proc/net/*?  I bet you use
> 'ps' instead of monkeying around in all the [0-9]* entries in /proc.  The
> fact is, we already have "little programs" converting, shuffling, reformating,
> and printing out those values.

Yes, but I meant a program which reads a single binary value and outputs it
as ascii, as a generic layer between the binary /proc and the ascii world
of shell scripts.

I don't like a binary /proc.

> However, yes, there are useful "human" elements in /proc.  And they really
> are there for the sole benefit of a human (eg. /proc/scsi/scsi, /proc/modules,
> /proc/slabinfo, etc.)  The bigger picture is that they don't particularly
> belong in "/proc" -- the thing originally created to access the process table
> without rooting through /dev/kmem. (Raise your hand if you were around for
> this.)

I've been around for six years (that is, six years on Linux, not quite as
long on lkml), which isn't quite long enough, I think.

But I agree: /proc is populated with files that don't really belong there.
Maybe everything should be moved to /kernel? (except for the process info,
offcourse).

[...]

> >Heck, 95% compatibility could even be achieved using a 100% userspace app
> >which serves the data over named pipes.
> 
> Screw backwards compatibilty.  Sometimes you have to cut your loses and
> move on.  We don't want to end up like Microsoft and the whole brain-fuck
> that is their dll world. (Yes, they knew it was stupid.  And yes, they
> would love to abandon it, but it's far, far too late.)  We switched to ELF,
> abandoned libc4, etc.  Add another to the pile.

It will be very, very hard for distributors to create a distribution which
runs one the native 2.6 /proc interface as soon as 2.6 comes out. I think
we must assume rewriting things like procps, init scripts, etc. will only
start as soon as 2.6 comes out. We should provide some transitional period
for userspace to adapt, but make clear to everybody that compatibility
isn't going to last forever.

-- 
Erik Hensema (erik@hensema.net)

  reply	other threads:[~2001-11-07 16:09 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06 21:21 PROPOSAL: /proc standards (was dot-proc interface [was: /proc William Knop
2001-11-06 21:31 ` Erik Hensema
2001-11-06 22:09   ` Ricky Beam
2001-11-07 16:08     ` Erik Hensema [this message]
2001-11-07 16:19       ` lkml user
2001-11-08  0:22       ` Albert D. Cahalan
2001-11-08  6:19         ` john slee
2001-11-08  8:14           ` Albert D. Cahalan
2001-11-08 11:49             ` john slee
  -- strict thread matches above, loose matches on Subject: below --
2001-11-07 19:28 William Knop
2001-11-07 23:01 ` Miquel van Smoorenburg
2001-11-05 13:41 PROPOSAL: dot-proc interface [was: /proc stuff] Petr Baudis
2001-11-06 18:56 ` PROPOSAL: /proc standards (was dot-proc interface [was: /proc stuff]) Stephen Satchell
2001-11-06 20:12   ` PROPOSAL: /proc standards (was dot-proc interface [was: /proc Erik Hensema
2001-11-06 20:58     ` Roy Sigurd Karlsbakk
2001-11-06 21:43       ` Ricky Beam
2001-11-06 22:14         ` Alexander Viro
2001-11-07  0:33           ` Alex Bligh - linux-kernel
2001-11-07  7:20             ` Albert D. Cahalan
2001-11-07  8:07               ` Alexander Viro
2001-11-07 17:24               ` Alex Bligh - linux-kernel
2001-11-07 17:22                 ` Blue Lang
2001-11-07 19:21                   ` Ricky Beam
2001-11-11 10:27                     ` Kai Henningsen
2001-11-08  0:47                 ` Albert D. Cahalan
2001-11-08 18:53                   ` Alex Bligh - linux-kernel
2001-11-08 21:28                     ` Ricky Beam
2001-11-09  5:15                     ` Albert D. Cahalan
2001-11-19 19:22                     ` bill davidsen
2001-11-07  0:13         ` Martin Dalecki
2001-11-07  0:40           ` Alex Bligh - linux-kernel
2001-11-07  1:10           ` Ricky Beam
     [not found]             ` <Pine.GSO.4.33.0111061947540.17287-100000@sweetums.bluetronic.ne t>
2001-11-07  1:17               ` Alex Bligh - linux-kernel
2001-11-07 11:32             ` Martin Dalecki
2001-11-07 12:35         ` Remco Post
2001-11-07 23:53           ` Albert D. Cahalan
2001-11-07 22:24         ` Paul P Komkoff Jr
2001-11-07 23:15           ` Phil Howard
2001-11-06 21:24     ` Rik van Riel
2001-11-06 21:45       ` Erik Hensema
2001-11-06 22:06       ` Tim Jansen
2001-11-06 22:28       ` Erik Andersen
2001-11-06 22:33         ` Jan-Benedict Glaw
2001-11-06 22:42           ` Erik Andersen
2001-11-06 22:49             ` Jan-Benedict Glaw
2001-11-06 22:53             ` Patrick Mochel
2001-11-06 22:52               ` Erik Andersen
2001-11-06 22:46           ` Ben Greear
2001-11-06 22:50             ` Jan-Benedict Glaw
2001-11-07  0:17           ` Martin Dalecki
2001-11-06 22:53     ` J . A . Magallon

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=20011107170836.A4782@hensema.net \
    --to=erik@hensema.net \
    --cc=erik@hensema.xs4all.nl \
    --cc=jfbeam@bluetopia.net \
    --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