Re: [PATCH mmotm] vmscan: handle may_swap more strictly (Re: [PATCH mmotm] vmscan: fix may_swap handling for memcg)



Hi, KOSAKI.

As you know, this problem caused by if condition(priority) in shrink_zone.
Let me have a question.

Why do we have to prevent scan value calculation when the priority is zero ?
As I know, before split-lru, we didn't do it.

Is there any specific issue in case of the priority is zero ?

Yes.

example:

get_scan_ratio() return anon:80%, file=20%. and the system have
10000 anon pages and 10000 file pages.

shrink_zone() picked up 8000 anon pages and 2000 file pages.
it mean 8000 file pages aren't scanned at all.

Oops, it can makes OOM-killer although system have droppable file cache.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH mmotm] vmscan: handle may_swap more strictly (Re: [PATCH mmotm] vmscan: fix may_swap hand
    ... Why do we have to prevent scan value calculation when the priority is zero? ... shrink_zonepicked up 8000 anon pages and 2000 file pages. ... Hmm..Can that problem be happen in real system? ... It means file lru have few reclaimable page. ...
    (Linux-Kernel)
  • Re: Priority groups will get swine flu shots first
    ... Anon wrote: ... No, if you're over 64 you are in a very low risk group for H1N1, ... 64 without the health problems listed. ... strange that they are giving the lowest priority to the elderly. ...
    (alt.support.diabetes)
  • Apt problem
    ... No priority (or zero) specified for pin ... However the apt-get commands and apps work. ...
    (Debian-User)
  • A NEW publication: "Finnish Statistics for Dummies".
    ... Anon O'Hara forgot to mention -- ALWAYS, ... the data is -- that intercept will ALWAYS be zero. ... since I had already a version "Portuguese Statistics for Dummies". ... The content of the posts may or may not contain verbatim ...
    (sci.stat.math)
  • Re: Apt problem
    ... Naitik. ... No priority (or zero) specified for pin ...
    (Debian-User)