[Samba] Avoiding constant HDD access

Andrew Bartlett abartlet at samba.org
Wed Nov 7 17:09:42 UTC 2018


On Wed, 2018-11-07 at 12:21 +0100, Reindl Harald via samba wrote:
> 
> 
> well, there are only connected 3 WinXP and 3 Win7 VM's with their
> personal folder on the sare, one has open MSIE with a website and all
> others doing nothing at all
> 
> these VMs are stripped to the bare minimum becaus etheir only purpose
> is
> testing websites, no unused software or services installed or even
> running
> 
> because the system is running on a micro-sd card iwas tempted more
> than
> once move "/var/lib/samba/private/msg.sock/" and
> "/var/lib/samba/lock/msg.lock/" in a tmpfs
> 
> but that won't solve the issue
>  20K -rw-r--r-- 1 root root  20K 2018-11-07 12:16 printer_list.tdb
>  16K -rw-r--r-- 1 root root  16K 2018-11-07 12:16 serverid.tdb
> 
> [root at nfs:~]$ backup-nfs.sh
> sending incremental file list
> sending incremental file list
> sending incremental file list
> sending incremental file list
> deleting samba/lock/msg.lock/1041903
> deleting samba/private/msg.sock/1041903
> samba/lock/gencache_notrans.tdb
>         454,656 100%  402.34MB/s    0:00:00 (xfr#1, to-chk=36/77)
> samba/lock/locking.tdb
>         491,520 100%  234.38MB/s    0:00:00 (xfr#2, to-chk=34/77)
> samba/lock/printer_list.tdb
>          20,480 100%    4.88MB/s    0:00:00 (xfr#3, to-chk=32/77)
> samba/lock/serverid.tdb
>          16,384 100%    3.91MB/s    0:00:00 (xfr#4, to-chk=31/77)
> samba/lock/smbXsrv_open_global.tdb
>          36,864 100%    8.79MB/s    0:00:00 (xfr#5, to-chk=29/77)
> samba/lock/msg.lock/
> samba/private/msg.sock/
> sending incremental file list

I think you are onto something here.  Certainly there is a very good
argument for putting 'lock dir' on a tmpfs and it would be worth asking
Volker why msg.sock didn't go under 'lock dir' as it would seem to meet
that definition (they certainly make no sense after a reboot).

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba






More information about the samba mailing list