Slow SMB Local Copy Performance

dinomic
Posts: 65
Joined: Mon Jan 03, 2011 6:49 am

Re: Slow SMB Local Copy Performance

Postby dinomic » Tue Apr 24, 2012 1:52 pm

so i am sure someone will disagree with me here but....

there is really little "danger" with working directly with the /var/hda/files/ShareName directories vs. the samba share that i can see.

The biggest difference is when Greyhole "deals" with them. If you use the samba shares, samba logs the file write, greyhole sees it and makes it's copies and sym links,

If you use the direct share, Greyhole waits until the next --fsck is run.

I think using samba has some performance sacrifices during the file transfer from my experience.
I'm not disagreeing, just playing Devil's Advocate! :)

If you DON'T use Samba shares, then the hooks that Greyhole has into Samba will not be triggered, so the files won't be marked for Greyhole to process them, don't think you? After all, Greyhole doesn't process the files straight away, it merely adds stuff to the Greyhole queue (ie adds it to the Greyhole DB), and that's where fsck will pick them up from.

I think the only way to know for sure is to try this:
1) Start with a system where there are no pending Greyhole tasks
2) Copy something directly a given directory that would otherwise be accessible via Samba (ie not doing things through Samba for now)
3) Check the Greyhole mysql DB to see if the task has been added for that particular file

If I get a chance soon, I'll try this myself and report back...
Norco 4220 Case
Gigabyte GA-G33-DS3R Motherboard w/ 8GB RAM
LSI SAS2116PCIe 6GB/s SAS (replaced 3Ware 9690SA-4I & Chenbro CK1360)
1 x Hitachi 160Gb2.5" System Drive (original 1 x OCZ 60GB Vertex 2 SATAII 2.5" SSD died)
8 x 4TB Hitachi Deskstars
6 x 3TB Hitachi Deskstars
6 x 2TB Hitachi Deskstars (1 dead!)

Who is online

Users browsing this forum: No registered users and 69 guests