Re: [PATCH resend] drop_caches: add some documentation and info message

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

 



On Tue, Jul 30, 2013 at 07:47:12AM -0700, Dave Hansen wrote:
> On 07/30/2013 05:55 AM, Michal Hocko wrote:
> >> > If we add another flag in the future it can use bit 3?
> > What if we get crazy and need more of them?
> 
> I really hate using bits for these kinds of interfaces.  I'm forgetful
> and never remember which bit is which, and they're possible to run out of.
> 
> I'm not saying do it now, but we can switch over to:
> 
> 	echo 'slab|pagecache' > drop_caches
> or
> 	echo 'quiet|slab' > drop_caches
> 
> any time we want and still have compatibility with the existing bitwise
> interface.

Hohum, definitely a nice idea at a first glance. And when you cat
drop_caches, it could show you what all those commands mean and how you
can issue them, i.e. allowed syntax etc.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  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]