Results 1 to 5 of 5

Thread: Win7 vs XP Network/Database Access Puzzle

  1. #1
    LUSE Galant's Avatar
    Join Date
    Oct 2003
    Location
    Gibraltar
    Posts
    3,252
    Thanks
    502
    Thanked
    555 times in 339 posts

    Win7 vs XP Network/Database Access Puzzle

    Hi Guys,

    Whilst reviewing a new system I've stumbled onto something of a mystery situation and I'm having trouble pin-pointing the cause. I'm starting to run-out of things to try and was wondering if any of you might be able to offer some insight.

    Here's the setup:

    We have a Windows Server 2003 tower which hosts a database (DBISAM).
    Then we have three networked machines each running client programs which access that database - one is running Windows 7 embedded and the other two are XP machines.

    One of the functions of the client software is to perform a text/keyword search for items in the database (think of a shop-front till where you can type in a word and it will retrieve any products which correspond). The odd situation I have is that the Win7 machine is performing noticeably slower than the XP machine. The exact same search might take the XP machine 2-3 seconds whereas it will take the Win 7 machine 10 seconds. In some cases I've seen much longer search times which become unacceptable.

    Now, in terms of hardware, the Windows 7 machine is far superior - i5 processor, 4GB RAM etc. (Although the program is quite light and really none of this is related to hardware/memory).

    So, what I am trying to understand is why an XP machine might be able to perform that network database search faster than a Win 7 machine. I've matched the networking settings although Windows 7 has a lot more options than XP does. I've been thinking it is either something to do with how 7 is handling networking, or talking to the database.

    Does anyone have insight into why an XP machine might communicate and search faster?

    Thanks,

    G.
    No trees were harmed in the creation of this message. However, many electrons were displaced and terribly inconvenienced.

  2. #2
    ɯʎɔɐɹsɐʌʍ mycarsavw's Avatar
    Join Date
    Feb 2007
    Posts
    4,945
    Thanks
    1,097
    Thanked
    653 times in 482 posts
    • mycarsavw's system
      • Motherboard:
      • P8H77-M Pro
      • CPU:
      • i5 3350P
      • Memory:
      • 16Gb
      • Storage:
      • Lots
      • Graphics card(s):
      • R9 285
      • PSU:
      • HX 620w
      • Case:
      • FD Define Mini
      • Operating System:
      • W10
      • Monitor(s):
      • BenQ G2420HDBL + GL2450HT
      • Internet:
      • Sky

    Re: Win7 vs XP Network/Database Access Puzzle

    Could it be something to do with TCP/IP auto-tuning introduced from Vista onwards?

    http://www.sevenforums.com/network-s...tml#post654207

    The link doesn't specifically mention slow SQL access but it has been noted as one of the reasons.
    |Kata: "Read title as 'fisting'. Not sure why I clicked. Relieved, really."|
    |TAKTAK: "It was so small that mine wouldn't fit into it"|

  3. Received thanks from:

    Galant (20-03-2014)

  4. #3
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,231
    Thanked
    2,291 times in 1,874 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: Win7 vs XP Network/Database Access Puzzle

    Afraid I don't know anything about DBISAM, but I'd be surprised if the search was running on the client hardware - any sanely developed client/server DB has the search running on the server and simply handing off the results to the clients. So either the Win 7 version is requesting the search differently so the server is taking longer to process it, or the results are taking much longer to transfer through the networking stack. It might be an idea to log server performance under controlled queries from the three different clients to see which component is behaving differently. That would be a good place to start narrowing down the search between hardware peformance and network performance...

  5. Received thanks from:

    Galant (20-03-2014)

  6. #4
    LUSE Galant's Avatar
    Join Date
    Oct 2003
    Location
    Gibraltar
    Posts
    3,252
    Thanks
    502
    Thanked
    555 times in 339 posts

    Re: Win7 vs XP Network/Database Access Puzzle

    mycarsavw - I'll take a look at the autotuning. Thanks.

    scaryjim - It does run the search on the server. Any recommendations on software for logging the server performance or would Windows own tools suffice?

    I can also specify the following:

    If I reboot all machines and then open the client software only on the Win7 machine the search function runs rapidly. As soon as I open up any other client the search speed is reduced. This is actually true for all clients, however, it is the Win7 machine which suffers the most.


    Thanks,

    A.
    No trees were harmed in the creation of this message. However, many electrons were displaced and terribly inconvenienced.

  7. #5
    LUSE Galant's Avatar
    Join Date
    Oct 2003
    Location
    Gibraltar
    Posts
    3,252
    Thanks
    502
    Thanked
    555 times in 339 posts

    Re: Win7 vs XP Network/Database Access Puzzle

    Update - I think I might have cracked it - although missing the exact cause.

    The following are/were all possible issues:

    Auto-Tuning (as per mycarsavw) - Disabled it.
    Link Local Multicast Name Resolution (LLMNR) - Disabled it.
    Advanced Network Adapter Features - Disabled any and all that could be disabled.
    Opportunistic Locking (OpLocks) - Needs registry entries creating/editing to enable or disable it.

    I disabled the features one by one in the above order and the search speed didn't improve until after I disabled all the advanced features, so it could be that it was one of the feature in there that was/is the culprit or a combination. Essentially, Win7 has a lot of 'helpful' features that XP/Server2003 don't know what to do with, resulting in a net slow down in communication.

    Oplocking looked like it could/should have been the issue in terms of the clients affecting one another, however, even though there is some slight slowing that occurs when the clients are run in combination, I found the client searches went a lot faster with the caching that oplocking provides rather than without it.

    Essentially, it looks like a change in the way the database works (rendering oplocking irrelevant), and avoiding the Win7/XP or 2003 combination, should result in even faster performance, but that remains to be seen.

    For now, things seem to be quick and stable.

    Thanks for the help!
    No trees were harmed in the creation of this message. However, many electrons were displaced and terribly inconvenienced.

  8. Received thanks from:

    mycarsavw (24-03-2014)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •