Question NAS Running Horrendously Slowly, Only from One Machine Though

koberulz

Distinguished
Dec 12, 2010
59
0
18,530
Was doing a couple of things with files on my NAS, which runs my media server. I think I was backing a disc up, and re-encoding a file, and possibly one or two other tasks. Anyway, it all came to a screeching halt. The encode just got stuck on 81% and sat there. There was no error about the drive being inaccessible, although for all intents and purposes it appeared to be. Eventually everything stopped responding, I rebooted. Still had the same issues. Even navigating in Windows Explorer is a "double click on a folder, go make a coffee, come back, drink the coffee, read the paper, then the folder might have opened" proposition.

Local storage is fine. Accessing the same NAS from my laptop is fine. Internet from my desktop is fine. Accessing my other NAS from my desktop is also catastrophically slow.

No idea what to try. That both NASes are affected, and that the issue only affects the desktop, indicates the NASes aren't the issue. The fact that the internet is fine (I can watch 4K on YouTube) from the desktop indicates my connection to the router is fine. I'm at a loss here.

Desktop is connected via ethernet, laptop is connected via WiFi. Both running Win10.
 

kanewolf

Titan
Moderator
Was doing a couple of things with files on my NAS, which runs my media server. I think I was backing a disc up, and re-encoding a file, and possibly one or two other tasks. Anyway, it all came to a screeching halt. The encode just got stuck on 81% and sat there. There was no error about the drive being inaccessible, although for all intents and purposes it appeared to be. Eventually everything stopped responding, I rebooted. Still had the same issues. Even navigating in Windows Explorer is a "double click on a folder, go make a coffee, come back, drink the coffee, read the paper, then the folder might have opened" proposition.

Local storage is fine. Accessing the same NAS from my laptop is fine. Internet from my desktop is fine. Accessing my other NAS from my desktop is also catastrophically slow.

No idea what to try. That both NASes are affected, and that the issue only affects the desktop, indicates the NASes aren't the issue. The fact that the internet is fine (I can watch 4K on YouTube) from the desktop indicates my connection to the router is fine. I'm at a loss here.

Desktop is connected via ethernet, laptop is connected via WiFi. Both running Win10.
Here is a test. In windows explorer, put "\\<NAS IP ADDRESS> in the access bar at the top of explorer. Is that fast ?
 
let me guess - windows on the desktop? Double-check your "network and sharing center" in your settings and make sure it's set to private network, which *should* allow the normal CIFS filesharing to work.

If not login to one of the NAS on the laptop and check out the logs in the admin interface while trying to login via the desktop.
 

koberulz

Distinguished
Dec 12, 2010
59
0
18,530
Here is a test. In windows explorer, put "\\<NAS IP ADDRESS> in the access bar at the top of explorer. Is that fast ?
It took 12 minutes to display the contents of the NAS.

let me guess - windows on the desktop? Double-check your "network and sharing center" in your settings and make sure it's set to private network, which *should* allow the normal CIFS filesharing to work.

If not login to one of the NAS on the laptop and check out the logs in the admin interface while trying to login via the desktop.
Network is private. Sharing works, just obscenely slowly (like, 15 minutes to open a txt file). I was literally in the middle or working with files when everything suddenly ground to a halt, so it can't be a settings thing as nothing on that front changed.

I did notice last night that when I am doing something particularly strenuous with the NAS (like trying to open a txt file), the internet slows dramatically as well.

I'm not sure what you mean about the logs. I can access the TrueNAS log just fine from the desktop machine: the web UI handles just as smoothly as it always has. I updated all the way from Angelfin to Dragonfish last night, with each one taking only a few minutes. So it's something specifically to do with Windows.
 

Ralston18

Titan
Moderator
On the desktop use Task Manager, Resource Monitor, and Process Explorer (Microsoft, free) to observe system performance.

Use all three tools but only one tool at a time.

Start doing things that do not require the NAS. Keep the tool window open and simply watch to determine what system resources are being used, to what extent, and what is using any given resource.

Then, leaving the tool window open, do something that you know will make the NAS(s) run "horrendously slow".

Watch for what changes. Make take a bit of trial and error to work out a methodical and consistent observation process. Take your time - there is no need to rush.

Process Explorer:

https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer

And, in light of @lantis3 's question, try observing with each NAS individually ( the other NAS shutdown), and then with both NAS's up and running.

Objective simply being to discover what is happening when NAS performance slows.
 

koberulz

Distinguished
Dec 12, 2010
59
0
18,530
What make and model NAS are we talking about?
How many files and folders are there on the top level ? \\<NAS IP ADDRESS>
TrueNAS Scale, three folders. But it also affects my Synology DS1819+, and both boxes work absolutely fine from my laptop. I'm also having zero issues watching 4K UHD rips stored on the NASes via my NVIDIA Shield. So it's something to do with this machine.

It came good, randomly, shortly after I did that test, and is now back to being absolutely awful again. I tried opening a file a few minutes later and it's still not open.

On the desktop use Task Manager, Resource Monitor, and Process Explorer (Microsoft, free) to observe system performance.
.
That's a lot of tabs, and I'm not sure what to look at. I also can't compare to doing nothing-affecting-the-NAS because I tried opening a file an hour ago and it's still tied up doing that. CPU is fine, memory is pretty maxed out (my browser uses most of my RAM at all times anyway, so that's unlikely to be related), Network seems pretty busy. The "TCP Connections" box in Resource Monitor is basically just light green, with a small dark green bit in the very top right corner. Absolutely nothing showing on "Local Area Connection" or "Local Area Connection 3". The "Network" window shows lots of spikes heading way off the top of the graph.

I62dFT9.png
 

Ralston18

Titan
Moderator
Resource Monitor is certainly showing lots of network activity.

Which is basically the stated problem.

Now the objective is to discover what is using the network: some app, utility, or even some network device that continues to broadcast.

What about the other tests and troubleshooting? Check network speeds and performance without either NAS connected/online. Then with just one NAS and then the other NAS connected.

Sketch out a simple diagram showing all network components - any loops? Device A connected to Device B connected to Device C connected to Device D connected to Device A again. A network loop.

Pay attention to the WAN and LAN ports being used. Any network switches?

Note the IP addresses of all connected devices: there should be no duplicate IP addresses.

Make and model information for modem, router, or modem router (if combined)?

Are you making use of any onboard storage on the the router? Likely via a USB port and thumb drive. Possibly a SD Smart card.....

= = = =

Lots of tabs? Remember to use only one tool/tab at a time.

If I follow correctly, my focus would be to do the testing while on the desktop.

Pick a tool and without having launched or otherwise attempting any downloads, backups, file transfers etc. Just watch. Hopefully the network activity will be very low.

Then, leave the tool window and do something that you know slows performance. Watch for what else changes. Perhaps some other app or utility is launched.

Or something already running in the background takes over the desktops's resources when network serices are needed or being used.

Good that the laptop is not impacted. Test and compare laptop and desktop when doing network activities.

Process Explorer is a good tool to use. Note that the column headers present a small < or > pointing up or down, Clicking the column heard will sort the data and often proves helpful in finding some process that is grabbing system resources.

Take your time, be methodical keep notes. watch carefully.

Remember to run and post the full results of "ipconfig /all"
 

koberulz

Distinguished
Dec 12, 2010
59
0
18,530
Check network speeds and performance without either NAS connected/online. Then with just one NAS and then the other NAS connected.
Well as far as I can tell the non-NAS parts of the network are fine even with both NASes connected. If I try to do something strenuous with the NAS, like open a file, the internet can sometimes slow up for a bit, but that's the only non-NAS issue I've really noticed.

Sketch out a simple diagram showing all network components - any loops? Device A connected to Device B connected to Device C connected to Device D connected to Device A again. A network loop.
I don't believe so?

Pay attention to the WAN and LAN ports being used. Any network switches?

I don't understand what this means.

Note the IP addresses of all connected devices: there should be no duplicate IP addresses.

There aren't.

Make and model information for modem, router, or modem router (if combined)?

TP-Link AC1750, Arris CM8200.
 
Have you tested the network with something more strenuous than youtube. What does speedtest say. Maybe try a large download from the internet. Something like a windows install image from microsoft will take a while and let you look at the rates. You should see the transfer speed network tab of the resource monitor.

Problem is these tests are using the web browser not microsoft file sharing so they will just confirm that other basic stuff is ok.

Can you share a file from your laptop and see if that also take time to copy over your lan.
 

koberulz

Distinguished
Dec 12, 2010
59
0
18,530
Can you share a file from your laptop and see if that also take time to copy over your lan.
What do you mean?

What does speedtest say.
AMS: 34.04 Mbps | 4.3 MB/s
AMS (Multi): 49.21 Mbps | 6.2 MB/s
RBX: 42.39 Mbps | 5.3 MB/s
RBX (Multi): 47.93 Mbps | 6 MB/s
LON1: 41.10 Mbps | 5.1 MB/s
LON1 (Multi): 46.76 Mbps | 5.8 MB/s
SYD1: 55.73 Mbps | 7 MB/s
SYD1 (Multi): 57.15 Mbps | 7.1 MB/s
HKG1: 54.32 Mbps | 6.8 MB/s
HKG1 (Multi): 55.70 Mbps | 7 MB/s
SGP1: 55.19 Mbps | 6.9 MB/s
SGP1 (Multi): 56.31 Mbps | 7 MB/s
SGPO1: 55.67 Mbps | 7 MB/s
SGPO1 (Multi): 55.48 Mbps | 6.9 MB/s
MUM1: 52.14 Mbps | 6.5 MB/s
MUM1 (Multi): 56.29 Mbps | 7 MB/s
JKT1: 54.86 Mbps | 6.9 MB/s
JKT1 (Multi): 55.58 Mbps | 6.9 MB/s
Cloudflare: 46.37 Mbps | 5.8 MB/s
Cloudflare (Multi): 39.79 Mbps | 5 MB/s