Re: Bug with future timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
On Tue, 14 Jun 2016 14:54:26 +0000, Michele Marcon wrote:
> Hi,
> I'm using nilfs on ARM I have found a problem when these conditions are met:
> 
> - set protection period to 60 seconds
> - set current time on the future (example: year 2020)
> - write something on flash, so that some checkpoints are created
> - set current time to the present
> - perform writes on flash.
> 
> When the garbage collector starts, it will notice that the
> checkpoint "from the future" is protected and will not remove it.
> The problem is that it will not remove subsequent checkpoints (but
> with timestamp that shouldn't be protected), and therefore there
> won't be any garbage collection until 2020.

Does this state really continue even if you continue writing after the
rewind ?

Checkpoint is protected not only by the protection period but also by
a few other conditions, for instance, recent segments are "active" and
protected from GC.  (the data and checkpoints in the active segments
may be protected regardless of their timestamps).  You can confirm if
the segment is active or not through the 'a' flag of lssu command.
  
If every block which belongs to a checkpoint is protected by GC,
then the checkpoint will not be discarded even if it has a timestamp
that can be removed.

> 
> The only workaround is to manually remove the "future" checkpoints
> with rmcp.
> 

rmcp in reality doesn't help to reclaim blocks.  It only invalidates
checkpoints and makes them unaccessible.

Regards,
Ryusuke Konishi


> Is this a known issue? Thanks!
> 
> 
> 
> Michele Marcon
> 
> Centro Ricerche
> RPS SpA
> Viale Europa, 7
> 37045 Legnago VR
> Tel. +39 0442 635939 Fax. +39 0442 635934
> Skype Id:  - Voip: 
> E-mail: M.Marcon@xxxxxxxxxxxxxx
> Web: www.riello-ups.com
> --------------------------------------------------------------------------
> Per favore non stampare questo messaggio se proprio non è 
> necessario 
> Please consider the environment before printing this e-mail
> --------------------------------------------------------------------------
> 
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux