[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y2mrRxHhVi/QEiUf@google.com>
Date: Tue, 8 Nov 2022 10:05:11 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Petr Vorel <pvorel@...e.cz>
Cc: Minchan Kim <minchan@...nel.org>, ltp@...ts.linux.it,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, Nitin Gupta <ngupta@...are.org>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Jens Axboe <axboe@...nel.dk>,
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
Martin Doucha <mdoucha@...e.cz>,
Yang Xu <xuyang2018.jy@...itsu.com>
Subject: Re: [PATCH 0/1] Possible bug in zram on ppc64le on vfat
On (22/11/07 23:42), Petr Vorel wrote:
[..]
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TINFO: /sys/block/zram1/mm_stat
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TINFO: /sys/block/zram1/mm_stat
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TINFO: /sys/block/zram1/mm_stat
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TINFO: /sys/block/zram1/mm_stat
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TINFO: /sys/block/zram1/mm_stat
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TINFO: /sys/block/zram1/mm_stat
> 15859712 0 0 26214400 196608 242 0
> zram01 7 TBROK: "loop_read_mem_used_total /sys/block/zram1/mm_stat" timed out
Looking at mm_stat_show(), mem_used can be 0 when mm_stat_show() is
called on un-initialized device
---
...
u64 orig_size, mem_used = 0;
long max_used;
ssize_t ret;
memset(&pool_stats, 0x00, sizeof(struct zs_pool_stats));
down_read(&zram->init_lock);
if (init_done(zram)) {
mem_used = zs_get_total_pages(zram->mem_pool);
zs_pool_stats(zram->mem_pool, &pool_stats);
}
...
---
Can you check if init_done() returns true in your tests?
Powered by blists - more mailing lists