Web lists-archives.com

Re: [Samba] Avoiding constant HDD access




On Thu, Nov 08, 2018 at 08:48:53AM +0000, Rowland Penny via samba wrote:
> On Wed, 7 Nov 2018 15:57:04 -0800
> Jeremy Allison via samba <samba@xxxxxxxxxxxxxxx> wrote:
> 
> > so yes it's goint to look at smb.conf and check_log_size()
> > will do an fstat() on the open log file descriptor, so this
> > may explain it.
> > 
> 
> Yes, but it isn't doing a read, it is trying to do a write and then
> being cancelled.
> I have left 'pidstat' running overnight and there is no mention of
> 'smbd' in the output anywhere.
> 
> If the OP is using 4.2-14, he is using Raspbian Jessie, I have advised
> the OP to upgrade to the latest Raspbian, this will get Samba 4.5.x
> 
> Rowland
> 
Can't it be writing to inode with updated access time after reading
the file or calling stat function? If atimes are not enabled on your 
machine this accounts for your not observing HDD writes.

If this is the case, if there is a simple mechanism to turn off the 
'housekeeping' or change the housekeeping interval?

/Al

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba