What is a reasonable minimum lease time?

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

 



We have an issue with the Ganesha server with very short (2 second) lease times. Ganesha uses a 1 second granularity for lease management, and considers a time since last renewed equal to the lease time as too long. The result is that the lease period may be short close to 2 seconds depending on when within a given second things actually happened (so a last renew at 0.99 with a subsequent renew at 2.01 which is just over one second looks like 2 seconds to Ganesha and thus is >= the 2 second lease time and not good enough. A simple change would be to change the >= to a >, which gives one more second, but it still could result in the lease time being almost 1 second too short which is significant with a 2 second lease time. But if the minimum reasonable lease time is more like 5 or 10 seconds, that 1 second becomes less significant.

The bigger fix would be to use a finer grained time, but that adds complexity, but if people really want to run with 2 second lease times and it makes any kind of sense, we would need to make that change.

Thanks


Frank




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux