Re: 回复:[PATCH] mm: vmpressure: simplify pressure ratio calculation

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

 



On Tue 04-07-17 21:08:15, zbestahu wrote:
> Michal wrote: 
> > Make sure you describe all that in the changelog because your original
> > patch description wasn't all that clear about your intention.
> 
> The patch's description is updated as following:
> 
> The patch does not change the function,

yes it pretty much changes the result.

> the existing percent
> calculation using scale should be about rounding to intege, it
> seems to be redundant, we can calculate it directly just like
> "pressure = not_relaimed * 100 / scanned", no rounding issue. And
> it's also better because of saving several arithmetic operations.

and you haven't explained why that change is so much better to change
the behavior.
-- 
Michal Hocko
SUSE Labs

--
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 OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux