Web lists-archives.com

Re: [Samba] Avoiding constant HDD access




On Wed, 7 Nov 2018 11:44:28 +0100
Reindl Harald via samba <samba@xxxxxxxxxxxxxxx> wrote:

> 
> Am 07.11.18 um 09:54 schrieb Rowland Penny via samba:
> > On Wed, 7 Nov 2018 05:45:45 +0300
> > Albert Berger via samba <samba@xxxxxxxxxxxxxxx> wrote:
> > 
> >> I'm running a Samba server on Raspbian and observing that Samba
> >> during idle periods is constantly (every minute) writing to HDD
> >> (maybe doing some journaling?) what causes the HDD to constantly
> >> spin and never standby:
> >>
> >> root@rpi:~# pidstat -dl 20
> >> Linux 4.4.50-v7+ (localhost) 	11/07/2018
> >> _armv7l_	(4 CPU) 
> >> 04:10:08 AM   UID  PID   kB_rd/s   kB_wr/s kB_ccwr/s iodelay
> >> Command 04:10:28 AM     0  832      0.00      0.20      0.20
> >> 0  /usr/sbin/smbd -D 
> >> 04:11:08 AM   UID  PID   kB_rd/s   kB_wr/s kB_ccwr/s iodelay
> >> Command 04:11:28 AM     0  832      0.00      0.20      0.20
> >> 0  /usr/sbin/smbd -D 
> >> 04:12:08 AM   UID  PID   kB_rd/s   kB_wr/s kB_ccwr/s iodelay
> >> Command 04:12:28 AM     0  832      0.00      0.20      0.20
> >> 0  /usr/sbin/smbd -D
> >>
> >> Is there some way (via configuration setting or maybe recompiling
> >> with some parameter) to turn off this constant disk io?
> >>
> > At first glance it looks like something is trying to write to a
> > share, but what is unclear from the info provided
> 
> no, samba all day long writes to /var/lib/samba
> 

When Samba is idle it doesn't, Samba only writes when it does something.

I have been running 'pidstat' on my computer for about 10 minutes now,
Samba is idle and guess what, none of the Samba deamons gets a mention.

Rowland


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