From: "Peter Teoh" <htmldeveloper@gmail.com>
To: "Scott Lovenberg" <scott.lovenberg@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
kernelnewbies <kernelnewbies@nl.linux.org>,
"Rik van Riel" <riel@redhat.com>
Subject: Re: Documentation about sysfs/procfs entries
Date: Tue, 12 Feb 2008 15:46:23 +0800 [thread overview]
Message-ID: <804dabb00802112346q240745abm93b6257f2cd64e60@mail.gmail.com> (raw)
In-Reply-To: <b1fc6a560802112217j57ab3fa1h611864a6a2423943@mail.gmail.com>
On Feb 12, 2008 2:17 PM, Scott Lovenberg <scott.lovenberg@gmail.com> wrote:
>
> On Feb 12, 2008 12:23 AM, Peter Teoh <htmldeveloper@gmail.com> wrote:
> >
> > I was looking for documentation on the kstack_depth_to_print under
> /proc/sys/kernel, and I found it in Documentation/sysctl.txt (written by
> Rik).
> >
> > How about /proc/sys/net? or all other directories under /sys or /proc
> fs?
> >
> > Wouldn't it be useful to have a centralized store located in Documentation
> - properly structured, just a one-liner or two - on the reasons and
> explanations for each of these /proc or /sys parameters? And something to
> look for further details?
> >
> > Something of the following:
> >
> > |-- netfilter
> > | |-- nf_conntrack_buckets:your explanation here
> > | |-- nf_conntrack_checksum:your explanation here...
> > | |-- nf_conntrack_count
> > | |-- nf_conntrack_expect_max
> > | |-- nf_conntrack_generic_timeout
> > | |-- nf_conntrack_icmp_timeout
> > | |-- nf_conntrack_log_invalid
> > | |-- nf_conntrack_max
> > | |-- nf_conntrack_tcp_be_liberal
> > | |-- nf_conntrack_tcp_loose
> > | |-- nf_conntrack_tcp_max_retrans
> > | |-- nf_conntrack_tcp_timeout_close
> > | |-- nf_conntrack_tcp_timeout_close_wait
> > | |-- nf_conntrack_tcp_timeout_established
> > | |-- nf_conntrack_tcp_timeout_fin_wait
> > | |-- nf_conntrack_tcp_timeout_last_ack
> > | |-- nf_conntrack_tcp_timeout_max_retrans
> > | |-- nf_conntrack_tcp_timeout_syn_recv
> > | |-- nf_conntrack_tcp_timeout_syn_sent
> > | |-- nf_conntrack_tcp_timeout_time_wait
> > | |-- nf_conntrack_udp_timeout
> > | `-- nf_conntrack_udp_timeout_stream
> > |-- nf_conntrack_max
> > |-- token-ring
> > | `-- rif_timeout
> > `-- unix
> > `-- max_dgram_qlen
> >
> >
> > Alternatively, we can write a script to extract out the partial
> explanations/details from existing source code, based on some coding
> convention/style structure, and further hand-modification from there.
> (given the dynamic nature of the kernel code, this may be preferred?)
> >
> >
>
> I was looking for exactly this about 2 weeks ago; I needed to look up the
> knobs for net and disk elevators, and had to jump all over the place. I
> assumed that such a thing should exist, but I didn't find it. I know I
> would personally benefit from this, and I'm sure many others would, too.
My suggestion is that since the parameters are:
a. divide the symbols into two group: well-documented vs
undocumented (prefixed by "__" eg, __xxxx). this supposedly for
sysadmin vs kernel developer.
b. for each of the official documented /sys control, provide a
one-line description when passed via /sys/help (eg, echo
kstack_depth_to_print > /sys/help) and the helpstring will go to the
console.
On the other hand, this may potentially blow up the vmlinux image size.
next prev parent reply other threads:[~2008-02-12 7:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <804dabb00802112123t774623b2n3e1e0a4addde1512@mail.gmail.com>
[not found] ` <b1fc6a560802112217j57ab3fa1h611864a6a2423943@mail.gmail.com>
2008-02-12 6:24 ` Scott Lovenberg
2008-02-12 7:46 ` Peter Teoh [this message]
[not found] ` <47B15DD2.3090706@gmail.com>
2008-02-13 2:08 ` Mulyadi Santosa
2008-02-13 4:43 ` Randy Dunlap
2008-02-13 5:48 ` Peter Teoh
[not found] ` <47B2874F.5000805@gmail.com>
2008-02-13 6:03 ` Manish Katiyar
2008-02-13 7:31 ` Greg KH
2008-02-13 7:40 ` Peter Teoh
2008-02-13 8:25 ` Greg KH
2008-02-13 9:00 ` Peter Teoh
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=804dabb00802112346q240745abm93b6257f2cd64e60@mail.gmail.com \
--to=htmldeveloper@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@redhat.com \
--cc=scott.lovenberg@gmail.com \
/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
all inboxes | Powered by JetHome®