Re: vmscan: Do not run shrinkers for zones other than ZONE_NORMAL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 21 Oct 2010 16:13:28 -0500 (CDT)
Christoph Lameter <cl@xxxxxxxxx> wrote:

> On Thu, 21 Oct 2010, Andrew Morton wrote:
> 
> > > With the per node patch we may be able to get some more finegrained slab
> > > reclaim in the future. But the subsystems are still not distinguishing
> > > caches per zone since slab allocations always occur from ZONE_NORMAL. So
> > > what is the point of the additional calls?
> > >
> >
> > In other words, you don't know!
> 
> Do you know what the point of calling slab_shrink() per zone in one
> location (kswapd) vs. for each reclaim pass in direct reclaim is?

No.  As I said, I don't recall the thinking behind it.  And I (and
apparently only I) made the effort to find out.

It could be in the very old email archives.  It would be a lot of work
to find it if so.  Which is why we should put things in comments and
changelogs.  With great diligence.  So we don't cause regressions five
years later.


> > Theoretical design arguments are all well and good.  But practical,
> > empirical results rule, and we don't know the practical, empirical
> > effects of this change upon our users.
> 
> If we want to use the shrinkers for node specific reclaim then we
> need to have some sane methodology to this. Not only "we have done it this
> way and we do not know why but it works". There seems to be already other
> dark grown heuristics around slab_reclaim.
> 
> But maybe its better to throw the two changes together to make this one
> patch for per node slab reclaim support.

It could be that the patch improves behaviour on smaller machines.  Or
worsens it or, more likely, has no discernable effect.

But for heavens sake we shouldn't go patching people's kernels when we
don't know what the effect of our change is!  Is this controversial?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]