[Samba] Avoiding constant HDD access
Reindl Harald
h.reindl at thelounge.net
Wed Nov 7 10:44:28 UTC 2018
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 at lists.samba.org> 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 at 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
------------------------------------------
[root at nfs:~]$ backup-nfs.sh
sending incremental file list
sending incremental file list
sending incremental file list
sending incremental file list
samba/lock/smbXsrv_session_global.tdb
40,960 100% 7.81MB/s 0:00:00 (xfr#1, to-chk=30/79)
samba/lock/smbXsrv_tcon_global.tdb
24,576 100% 23.44MB/s 0:00:00 (xfr#2, to-chk=29/79)
samba/lock/msg.lock/
samba/lock/msg.lock/1041903
20 100% 19.53kB/s 0:00:00 (xfr#3, to-chk=25/79)
samba/private/msg.sock/
samba/private/msg.sock/1041903
sending incremental file list
------------------------------------------
[root at nfs:~]$ backup-nfs.sh
sending incremental file list
sending incremental file list
sending incremental file list
sending incremental file list
samba/lock/printer_list.tdb
20,480 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=34/79)
samba/lock/serverid.tdb
16,384 100% 15.62MB/s 0:00:00 (xfr#2, to-chk=33/79)
sending incremental file list
More information about the samba
mailing list