For 2 PC connects via a router, is there a way to avoid the 2 sec access delay?

Discussion in 'Networking & Security' started by Happy Hopping, Feb 8, 2014.

  1. Happy Hopping

    Happy Hopping [H]ardness Supreme

    Messages:
    6,471
    Joined:
    Jul 1, 2004
    Say there are 2 PC: Main and Client. Main is where all the data is located. These 2 PC is connected to a router. I notice whenever the "Client" goes to the Map drive of the "Main", there is a 2 sec. delay or so. The folder is located at Public under the Main PC. Is there a way to avoid it? Both PC are using Intel SSD. The router is linksys.

    Needless to say, when the "Main" PC access its own data files at "Public", it's instant
     
  2. serpretetsky

    serpretetsky [H]ard|Gawd

    Messages:
    1,684
    Joined:
    Dec 24, 2008
    can you ping one computer from the other? What's the latency?

    After you open the mapped drive, is there still a latency browsing through directories or opening files?
     
  3. jmilcher

    jmilcher [H]ardness Supreme

    Messages:
    4,149
    Joined:
    Feb 3, 2008
    Im assuming both connections are wireless? The delay is simply introduced by the network protocol.
     
  4. Dark Shade

    Dark Shade [H]ard|Gawd

    Messages:
    1,872
    Joined:
    May 2, 2006
    Is this directory being shared via NFS or samba?
     
  5. wizdum

    wizdum [H]ard|Gawd

    Messages:
    1,940
    Joined:
    Sep 22, 2010
    I had this issue with Samba before, but I can't remember what I did to fix it. I think it was related to a setting that cached or pre-loaded the directory structure of the share.
     
  6. Dead Parrot

    Dead Parrot 2[H]4U

    Messages:
    2,401
    Joined:
    Mar 4, 2013
    Is the 2 second delay for every Client access of Main or just the first? Thinking that maybe something is going in to power save mode and taking a couple of seconds to wake up. Even some 'green' routers will power down ports that are not in use to save a few milliwatts of power.
     
  7. Happy Hopping

    Happy Hopping [H]ardness Supreme

    Messages:
    6,471
    Joined:
    Jul 1, 2004
    I am not at that location currently. But next time I go there, I'll do the ping test to see what the latency is. But after I open the mapped drive, there is no further delay.

    And this is wired connection, NOT wireless. The wire is quite long, say 40 to 50 ft. or so. But w/ the speed of 100 BaseT, it shouldn't matter.

    I didn't use Samba. All I did is right click the folder to have it Shared, so that the Client PC can connects to the Host.

    It's not power save mode. See the person at the host is using the PC. And it's the very same SSD, of course, they are not using the same file, but it's still the same SSD. So there is no sleep mode at all.
     
  8. /usr/home

    /usr/home [H]ardness Supreme

    Messages:
    6,164
    Joined:
    Mar 18, 2008
    Is it actually 2 seconds?
     
  9. FrankD400

    FrankD400 Limp Gawd

    Messages:
    147
    Joined:
    Jan 31, 2013
    Windows sharing is Samba/CIFS. The delay is a Windows issue, its never going to be fully instant but if it is truly 2 seconds there may be some Samba tuning you can do. Is a two second delay hurting your productivity? That's not a particularly long time to wait.

    You can try making it a permanent mount, that may help.

    Is performance acceptable after the initial connection? Ie after you first go to the shared folder can you navigate/open files quickly?
     
  10. Happy Hopping

    Happy Hopping [H]ardness Supreme

    Messages:
    6,471
    Joined:
    Jul 1, 2004
    The person who uses it is bother by the approx. 2 sec. delay every time. I need to go back and double check. As it's been a while. I cannot confirm whether it's a delay on the 1st time, or is it a 2 sec. delay every time the "Client PC" going to that share folder in the Host.

    I think it is Everytime. So if she has to access 2 dozen files, then comes the 2 sec. delay every time per file. The delay time is the same, it's about 2 sec.

    Is there a tutorial guide on tuning Samba? As I'm not verse in Permanent Mount. I do a search on the internet later.

    The reason I post this thread is because another group of people, about 6 PC, wants to go back to peer to peer w/ a simple Public Folder of file sharing, and phrase out their 10 yr. old windows 2003 server. AS the benefit of hard drive in RAID is fading fast when they can easily save their data on a SSD. The speed of SSD is so fast that it has to offset any delay of an old Windows 2003 RAID server. And I don't recall what's the sec. delay from a client to access a win 2003 server, if it's about 1 to 2 sec., then there is nothing to gain to buy a new server w/ new hardware and software costs. What do you guys think?
     
  11. MysticRyuujin

    MysticRyuujin Limp Gawd

    Messages:
    508
    Joined:
    Oct 1, 2013
    Are they accessing it via IP or hostname? If hostname you could try adding an entry into the hosts table of the machine so it doesn't have to do any kind of name resolution. But I would imagine this isn't the problem if it's every time...
     
  12. MysticRyuujin

    MysticRyuujin Limp Gawd

    Messages:
    508
    Joined:
    Oct 1, 2013
    As for your question about server or client-server...there's a hundred questions we could ask. It's up to them.

    There are so many things you get in benefit from having a server over distributed sharing such as central management, central backup, permissions control. A true file server can do classification, quotas, storage reports...

    So many reasons to use a central file server but if you don't need them then you don't need them...
     
  13. Happy Hopping

    Happy Hopping [H]ardness Supreme

    Messages:
    6,471
    Joined:
    Jul 1, 2004
    They don't need any of that. In fact, the old server has no monitor connects to it. It's just for files