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

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

 



Michal wrote:
> > 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.

it removes 3 below arithmetic instructions so it should be running faster.
add: scanned + reclaimed
mul: scale * reclaimed
udiv: reclaimed * scale /scanned��.n������g����a����&ޖ)���)��h���&������梷�����Ǟ�m������)������^�����������v���O��zf������




[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