[lkml]   [2001]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Patch submissions
Rik van Riel wrote:
> On Tue, 6 Mar 2001, Alan Cox wrote:
> > I'm getting a notable increase in people sending me patches that
> > do major things and should be 2.5 stuff. Please if you want to
> > rewrite the VM completely, redesign the scsi layer and the like
> > wait until 2.5.
> VM folks can post their patches to, where
> we can play with things until 2.5 is forked.

With respect, Rik. You haven't finished the 2.4 VM yet.

It needs better design description. I've been reading
through it lately, and in some parts it is very, very
hard to go backwards from the implementation to the
designer's intent.

Let's take just one line:

count = inactive_shortage() + free_shortage();

That expands to, approximately, sometimes:

freepages.high + inactive_target - nr_free_pages() -
nr_inactive_clean_pages() - nr_inactive_dirty_pages;

plus free_shortage():

(freepages.high + inactive_target / 3) -
(nr_free_pages() + nr_inactive_clean_pages())


2 * freepages.high + 1.33*(min((memory_pressure >> INACTIVE_SHIFT),
(num_physpages / 4))) - 2 * nr_free_pages() -
2 * nr_inactive_clean_pages() - nr_inactive_dirty_pages

That's not a thing which just leaps out at me and shouts "ah-ha!" :)

Across the lifetime of 2.4, other people are going to need to
understand this stuff. To be able to analyse and even predict how the
VM dynamics will change with varying tuning, varying workload
and varying platform characteristics.

There *is* a fair quantity of good design description in there,
but there are gaps.

Could you please take the time to raise a commentary patch
which describes the underlying design intent? I'd
strongly recommend *against* some offstream document (it
doesn't get updated) or API documentation (usually lame and useless).
Inline description is much more useful and better maintained.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.110 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site