Slow gvfs SMB Performance












5















if I use/acces a SMB Share using Nautilus or manually using "gvfs-mount smb://SERVER-IP/Share" I get a poor Performance, only about 7 mb/s on my 100 Mbit Network.



If I access the same Share on Windows I get Fullspeed 100 Mbit (About 11 mb/s), also if I mount using sudo mount -t cifs //SERVER-IP/Share /mountpount which uses cifs instead of gvfs I get fullspeed too, so can anyone tell me if there is a Performance Problem/Bug in gvfs or how gvfs is using SMB Shares differerently ?



I tested read Performance (From my Network SMB Share) with multiples files and always, the cifs-Version is fullspeed and the GVFS-Version has some mb/s less.



After some research I found some tips to optimize the SMB Settings of my Ubuntu Installation and some network tuning tips, but as the CIFS mounted share gets the full Network Speed I don't believe its that kind of problem.










share|improve this question

























  • Same problem here, but with a faster network: Copying a 1.2 GB file takes 157 seconds when the target is mounted with gvfs, but takes only 26 seconds when the same target is mounted with mount.cifs.

    – ʇsәɹoɈ
    Oct 7 '13 at 22:34
















5















if I use/acces a SMB Share using Nautilus or manually using "gvfs-mount smb://SERVER-IP/Share" I get a poor Performance, only about 7 mb/s on my 100 Mbit Network.



If I access the same Share on Windows I get Fullspeed 100 Mbit (About 11 mb/s), also if I mount using sudo mount -t cifs //SERVER-IP/Share /mountpount which uses cifs instead of gvfs I get fullspeed too, so can anyone tell me if there is a Performance Problem/Bug in gvfs or how gvfs is using SMB Shares differerently ?



I tested read Performance (From my Network SMB Share) with multiples files and always, the cifs-Version is fullspeed and the GVFS-Version has some mb/s less.



After some research I found some tips to optimize the SMB Settings of my Ubuntu Installation and some network tuning tips, but as the CIFS mounted share gets the full Network Speed I don't believe its that kind of problem.










share|improve this question

























  • Same problem here, but with a faster network: Copying a 1.2 GB file takes 157 seconds when the target is mounted with gvfs, but takes only 26 seconds when the same target is mounted with mount.cifs.

    – ʇsәɹoɈ
    Oct 7 '13 at 22:34














5












5








5


1






if I use/acces a SMB Share using Nautilus or manually using "gvfs-mount smb://SERVER-IP/Share" I get a poor Performance, only about 7 mb/s on my 100 Mbit Network.



If I access the same Share on Windows I get Fullspeed 100 Mbit (About 11 mb/s), also if I mount using sudo mount -t cifs //SERVER-IP/Share /mountpount which uses cifs instead of gvfs I get fullspeed too, so can anyone tell me if there is a Performance Problem/Bug in gvfs or how gvfs is using SMB Shares differerently ?



I tested read Performance (From my Network SMB Share) with multiples files and always, the cifs-Version is fullspeed and the GVFS-Version has some mb/s less.



After some research I found some tips to optimize the SMB Settings of my Ubuntu Installation and some network tuning tips, but as the CIFS mounted share gets the full Network Speed I don't believe its that kind of problem.










share|improve this question
















if I use/acces a SMB Share using Nautilus or manually using "gvfs-mount smb://SERVER-IP/Share" I get a poor Performance, only about 7 mb/s on my 100 Mbit Network.



If I access the same Share on Windows I get Fullspeed 100 Mbit (About 11 mb/s), also if I mount using sudo mount -t cifs //SERVER-IP/Share /mountpount which uses cifs instead of gvfs I get fullspeed too, so can anyone tell me if there is a Performance Problem/Bug in gvfs or how gvfs is using SMB Shares differerently ?



I tested read Performance (From my Network SMB Share) with multiples files and always, the cifs-Version is fullspeed and the GVFS-Version has some mb/s less.



After some research I found some tips to optimize the SMB Settings of my Ubuntu Installation and some network tuning tips, but as the CIFS mounted share gets the full Network Speed I don't believe its that kind of problem.







samba cifs gvfs smb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '15 at 5:07









jelmer

2,0451420




2,0451420










asked Sep 29 '12 at 15:58









WolfgangWolfgang

2613




2613













  • Same problem here, but with a faster network: Copying a 1.2 GB file takes 157 seconds when the target is mounted with gvfs, but takes only 26 seconds when the same target is mounted with mount.cifs.

    – ʇsәɹoɈ
    Oct 7 '13 at 22:34



















  • Same problem here, but with a faster network: Copying a 1.2 GB file takes 157 seconds when the target is mounted with gvfs, but takes only 26 seconds when the same target is mounted with mount.cifs.

    – ʇsәɹoɈ
    Oct 7 '13 at 22:34

















Same problem here, but with a faster network: Copying a 1.2 GB file takes 157 seconds when the target is mounted with gvfs, but takes only 26 seconds when the same target is mounted with mount.cifs.

– ʇsәɹoɈ
Oct 7 '13 at 22:34





Same problem here, but with a faster network: Copying a 1.2 GB file takes 157 seconds when the target is mounted with gvfs, but takes only 26 seconds when the same target is mounted with mount.cifs.

– ʇsәɹoɈ
Oct 7 '13 at 22:34










1 Answer
1






active

oldest

votes


















0














Same here 12MB/s vs 5MB/s. I think the main difference is the buffer size. By CIFS I use 1MB buffer size, by GVFS you cannot set the buffer size as far as I know. I checked the code https://wiki.gnome.org/Projects/gvfs, but I am not a C expert. According to it the max is 64KB buffer size the GVFS SMB implementation can handle. By the copy from SMB to the same SMB drive the buffer size was given manually and it was only 4KB. By the other parts it was injected from an upper abstraction level I did not check. It is a big lib. I suspect that GVFS uses only 4KB buffer size by default. I tried a CIFS mount with 64KB buffer size and it had the same speed as with the 1MB buffer size. I wait for the Gnome guys to confirm this and/or fix it somehow. Btw. this is a really old bug, at least I read about it in many forums.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f194475%2fslow-gvfs-smb-performance%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Same here 12MB/s vs 5MB/s. I think the main difference is the buffer size. By CIFS I use 1MB buffer size, by GVFS you cannot set the buffer size as far as I know. I checked the code https://wiki.gnome.org/Projects/gvfs, but I am not a C expert. According to it the max is 64KB buffer size the GVFS SMB implementation can handle. By the copy from SMB to the same SMB drive the buffer size was given manually and it was only 4KB. By the other parts it was injected from an upper abstraction level I did not check. It is a big lib. I suspect that GVFS uses only 4KB buffer size by default. I tried a CIFS mount with 64KB buffer size and it had the same speed as with the 1MB buffer size. I wait for the Gnome guys to confirm this and/or fix it somehow. Btw. this is a really old bug, at least I read about it in many forums.






    share|improve this answer




























      0














      Same here 12MB/s vs 5MB/s. I think the main difference is the buffer size. By CIFS I use 1MB buffer size, by GVFS you cannot set the buffer size as far as I know. I checked the code https://wiki.gnome.org/Projects/gvfs, but I am not a C expert. According to it the max is 64KB buffer size the GVFS SMB implementation can handle. By the copy from SMB to the same SMB drive the buffer size was given manually and it was only 4KB. By the other parts it was injected from an upper abstraction level I did not check. It is a big lib. I suspect that GVFS uses only 4KB buffer size by default. I tried a CIFS mount with 64KB buffer size and it had the same speed as with the 1MB buffer size. I wait for the Gnome guys to confirm this and/or fix it somehow. Btw. this is a really old bug, at least I read about it in many forums.






      share|improve this answer


























        0












        0








        0







        Same here 12MB/s vs 5MB/s. I think the main difference is the buffer size. By CIFS I use 1MB buffer size, by GVFS you cannot set the buffer size as far as I know. I checked the code https://wiki.gnome.org/Projects/gvfs, but I am not a C expert. According to it the max is 64KB buffer size the GVFS SMB implementation can handle. By the copy from SMB to the same SMB drive the buffer size was given manually and it was only 4KB. By the other parts it was injected from an upper abstraction level I did not check. It is a big lib. I suspect that GVFS uses only 4KB buffer size by default. I tried a CIFS mount with 64KB buffer size and it had the same speed as with the 1MB buffer size. I wait for the Gnome guys to confirm this and/or fix it somehow. Btw. this is a really old bug, at least I read about it in many forums.






        share|improve this answer













        Same here 12MB/s vs 5MB/s. I think the main difference is the buffer size. By CIFS I use 1MB buffer size, by GVFS you cannot set the buffer size as far as I know. I checked the code https://wiki.gnome.org/Projects/gvfs, but I am not a C expert. According to it the max is 64KB buffer size the GVFS SMB implementation can handle. By the copy from SMB to the same SMB drive the buffer size was given manually and it was only 4KB. By the other parts it was injected from an upper abstraction level I did not check. It is a big lib. I suspect that GVFS uses only 4KB buffer size by default. I tried a CIFS mount with 64KB buffer size and it had the same speed as with the 1MB buffer size. I wait for the Gnome guys to confirm this and/or fix it somehow. Btw. this is a really old bug, at least I read about it in many forums.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 21 '16 at 15:05









        inf3rnoinf3rno

        1881111




        1881111






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f194475%2fslow-gvfs-smb-performance%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b