Re: [PATCH 9/9] nilfs2: prevent starvation of segments protected by snapshots

2015-03-13 Thread Ryusuke Konishi
On Tue, 24 Feb 2015 20:01:44 +0100, Andreas Rohner wrote: It doesn't really matter if the number of reclaimable blocks for a segment is inaccurate, as long as the overall performance is better than the simple timestamp algorithm and starvation is prevented. The following steps will lead to

Re: [PATCH 5/9] nilfs2: add simple tracking of block deletions and updates

2015-03-13 Thread Ryusuke Konishi
On Tue, 24 Feb 2015 20:01:40 +0100, Andreas Rohner wrote: This patch adds simple tracking of block deletions and updates for all files except the DAT- and the SUFILE-Metadatafiles. It uses the fact, that for every block, NILFS2 keeps an entry in the DAT-File and stores the checkpoint where it

Re: [PATCH 3/9] nilfs2: extend SUFILE on-disk format to enable counting of live blocks

2015-03-13 Thread Ryusuke Konishi
On Tue, 24 Feb 2015 20:01:38 +0100, Andreas Rohner wrote: *buf, int cleansi, cleansu, dirtysi, dirtysu; long ncleaned = 0, ndirtied = 0; int ret = 0; + bool sup_ext = (supsz = NILFS_EXT_SUINFO_UPDATE_SIZE); + bool su_ext = nilfs_sufile_ext_supported(sufile);

Re: [PATCH 6/9] nilfs2: use modification cache to improve performance

2015-03-13 Thread Ryusuke Konishi
On Tue, 24 Feb 2015 20:01:41 +0100, Andreas Rohner wrote: This patch adds a small cache to accumulate the small decrements of the number of live blocks in a segment usage entry. If for example a large file is deleted, the segment usage entry has to be updated for every single block. But for

Re: [PATCH 2/9] nilfs2: add simple cache for modifications to SUFILE

2015-03-13 Thread Ryusuke Konishi
On Tue, 24 Feb 2015 20:01:37 +0100, Andreas Rohner wrote: This patch adds a simple, small cache that can be used to accumulate modifications to SUFILE entries. This is for example useful for keeping track of reclaimable blocks, because most of the modifications consist of small increments or