[Gluster-devel] Best performance glusterfs v. 3.0.0 and samba

Roland Fischer roland.fischer at xidras.com
Mon Feb 15 16:48:49 UTC 2010


Hello,

i have some troubles with glusterfs v.3.0.0 and samba.
Have anybody experience with gfs and samba? Maybe my config files oder 
tuning options are bad?

we use xen 3.4.1 and glusterfs3.0.0 and client-side-replication.

One domU which is running on glusterfs should release another gfs-lun 
via samba. But the performance is bad.

servervolfile:
cat export-web-data-client_repl.vol
# export-web-data-client_repl
# gfs-01-01 /GFS/web-data
# gfs-01-02 /GFS/web-data

volume posix
   type storage/posix
   option directory /GFS/web-data
end-volume

volume locks
   type features/locks
   subvolumes posix
end-volume

volume writebehind
   type performance/write-behind
   option cache-size 4MB
   option flush-behind on
   subvolumes locks
end-volume

volume web-data
   type performance/io-threads
   option thread-count 32
   subvolumes writebehind
end-volume

volume server
   type protocol/server
   option transport-type tcp
   option transport.socket.listen-port 7000
   option auth.addr.web-data.allow *
   subvolumes web-data
end-volume

clientvolfile:
cat /etc/glusterfs/mount-web-data-client_repl.vol
volume gfs-01-01
   type protocol/client
   option transport-type tcp
   option remote-host gfs-01-01
   option remote-port 7000
   option ping-timeout 5
   option remote-subvolume web-data
end-volume

volume gfs-01-02
   type protocol/client
   option transport-type tcp
   option remote-host gfs-01-02
   option remote-port 7000
   option ping-timeout 5
   option remote-subvolume web-data
end-volume

volume web-data-replicate
     type cluster/replicate
     subvolumes gfs-01-01 gfs-01-02
end-volume

volume readahead
   type performance/read-ahead
   option page-count 16              # cache per file  = (page-count x 
page-size)
   subvolumes web-data-replicate
end-volume

volume writebehind
   type performance/write-behind
   option cache-size 2048KB
   option flush-behind on
   subvolumes readahead
end-volume

volume iocache
   type performance/io-cache
   option cache-size 256MB  #1GB supported
   option cache-timeout 1
   subvolumes writebehind
end-volume

volume quickread
     type performance/quick-read
     option cache-timeout 1
     option max-file-size 64kB
     subvolumes iocache
end-volume

volume statprefetch
     type performance/stat-prefetch
     subvolumes quickread
end-volume


Thank you very much
regards,
Roland







More information about the Gluster-devel mailing list