summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorNhat Pham <nphamcs@gmail.com>2023-10-25 02:45:09 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-11-01 22:38:35 +0300
commitcb61dad80fdc6a8f01b101e823a9335cd6d61071 (patch)
tree0621306f5236feb67597fc660d1a9c1bd62192d9 /virt
parent9fb2047d23d5087e124e7bc7a0abdc3f0d7f5d7e (diff)
downloadlinux-cb61dad80fdc6a8f01b101e823a9335cd6d61071.tar.xz
zswap: export compression failure stats
During a zswap store attempt, the compression algorithm could fail (for e.g due to the page containing incompressible random data). This is not tracked in any of existing zswap counters, making it hard to monitor for and investigate. We have run into this problem several times in our internal investigations on zswap store failures. This patch adds a dedicated debugfs counter for compression algorithm failures. Link: https://lkml.kernel.org/r/20231024234509.2680539-1-nphamcs@gmail.com Signed-off-by: Nhat Pham <nphamcs@gmail.com> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Dan Streetman <ddstreet@ieee.org> Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Muchun Song <muchun.song@linux.dev> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Seth Jennings <sjenning@redhat.com> Cc: Shakeel Butt <shakeelb@google.com> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Cc: Yosry Ahmed <yosryahmed@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions