linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nate Diller" <nate.diller@gmail.com>
To: "Neil Brown" <neilb@suse.de>
Cc: "Bryan Henderson" <hbryan@us.ibm.com>,
	linux-fsdevel@vger.kernel.org,
	"UZAIR LAKHANI" <uzairr_bs1b@yahoo.com>
Subject: Re: How long can an inode structure reside in the inode_cache? - read the code
Date: Tue, 13 Jun 2006 16:25:13 -0700	[thread overview]
Message-ID: <5c49b0ed0606131625q56dd913eq7cb7e180d7e70520@mail.gmail.com> (raw)
In-Reply-To: <17549.63671.852799.409250@cse.unsw.edu.au>

On 6/12/06, Neil Brown <neilb@suse.de> wrote:
> On Monday June 12, hbryan@us.ibm.com wrote:
> > >Maybe you should spend a week reading the code?  It can be a lot of
> > >fun, and you might even find a bug or two...
> >
> > I'm not sure how serious this suggestion is, but it could be taken as as
> > advice not to ask questions like this on the list, and I'd like to say
> > that the questions are entirely appropriate.
>
> It was meant seriously, but lightly (if that makes sense), I answered
> the question after all.
>
> >
> > It makes more sense to me to ask someone, via linux-fsdevel, who has
> > already spent the week analyzing the code than to duplicate that effort.
> >
>
> I'm happy to have questions asked, and am happy to answer them.  But I
> like to see evidence that the person asking them is putting some
> effort in themselves.
>
> In this case it was the third question in a fairly confined area.
> Always fairly brief questions, with no evidence of background
> research.
> Now maybe that is due to language issues, or maybe they are just
> someone who prefers to be terse or whatever and it certainly isn't
> enough justification to be harsh, but I don't think I was harsh
> (apologies if it seemed that way).
>
>
> > Many people, including me, have difficulty extracting the big picture from
> > Linux source code, and have very little fun trying.  Questions of object
> > lifetimes and memory management are big-picture issues.  I can tell from
> > reading lists such as linux-fsdevel that there are others who read Linux C
> > code like they read a textbook.  (These are the folks who get irritated at
> > excessive commenting and long variable names).  But for the rest of us,
> > asking an expert shouldn't be discouraged.
>
> Certainly, people should be free to ask questions. I tend to prefer
> questions that demonstrate that the asker is doing some research
> themselves.
>   "I found this piece of code but don't quite understand what it
>     does?"
>   "Where should I look for code that implements ...."
>   "When is foo() called, and why?

The lack of big-picture comments (and accompanying LKML discussions),
is IMO the biggest problem with Linux.  Not only does this cause
problems for people such as Xin and Uzair trying to understand the
code, but it causes large performance problems to go
unnoticed/undiagnosed.  Of course, I'm one of the ones that never
asks, i just read the code as many times as I need to (thanks LXR),
but that's because I get paid for this, and I can afford the time.

Hopefully I will be able to submit some performance patches sometime
soon, and I assure you they will have big-picture comments.  Maybe the
comments will even be kept up-to-date by people when they modify the
design.

NATE

  reply	other threads:[~2006-06-13 23:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-10  0:10 How long can an inode structure reside in the inode_cache? Xin Zhao
2006-06-10 12:13 ` Matthew Wilcox
2006-06-10 17:12   ` Xin Zhao
2006-06-10 19:01     ` Jeff Mahoney
2006-06-11  5:21       ` UZAIR LAKHANI
2006-06-11  5:35         ` Neil Brown
2006-06-12 18:20           ` How long can an inode structure reside in the inode_cache? - read the code Bryan Henderson
2006-06-12 23:28             ` Neil Brown
2006-06-13 23:25               ` Nate Diller [this message]
2006-07-05  0:41                 ` Andrew Morton

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=5c49b0ed0606131625q56dd913eq7cb7e180d7e70520@mail.gmail.com \
    --to=nate.diller@gmail.com \
    --cc=hbryan@us.ibm.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=uzairr_bs1b@yahoo.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;
as well as URLs for NNTP newsgroup(s).