[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ext4
Subject:    RE: Re: Re: discard and data=writeback
From:       Daejun Park <daejun7.park () samsung ! com>
Date:       2020-12-31 1:32:36
Message-ID: 20201231013236epcms2p63f3c167693f76407103422d8cd347725 () epcms2p6
[Download RAW message or body]

Hi,

In the trace files, the amount of discard is almost the same in both modes.
(ordered: 1096MB / writeback: 1078MB) However, there is a big difference in
the average discard size per request. (ordered: 15.6KB / writeback: 34.2MB)
In ext4, when data is deleted, discard is immediately issued in writeback
mode. Therefore, the average size of discard commands is small and the
number of discard commands is large.
However, if it is not in the writeback mode, discard commands are issued by
JBD after merging them. Therefore, the average size of discard is large and
the number of discard commands is small.

In conclusion, since discard commands are not merged in the writeback mode,
many fragmented discard commands occur, so it affects the elapsed time of
many file deletion. And it is not abnormal behavior of ext4 file system.

Thanks,
Daejun
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic