100% CPU usage transferring files over NFS


Recommended Posts

Hello, I have been having this issue for as long as I've used Unraid so I've just assumed that it is due to the low CPU power of the G3258. However, I am wondering if there is anything I should be tuning/tweaking to potentially fix this.

 

Whenever I transfer files over NFS (to & from the server) the CPU usage of the G3258 rises to 100% with a rough throughput of ~30MB/s.

 

Screenshot_20190821_164615.png.78101de703a7e79f2a11c1522587169f.png

 

I do not think this is due to the low power of my CPU however, as transfering the same files from one disk to another only uses maximum around ~60% of the CPU, with a throughput of the disk maximum (~120MB/s)

 

Screenshot_20190821_165330.png.8e345599f1bdc2b60e0525cfcbb0594e.png

 

Disk Settings:

Screenshot_20190821_173252.png.127e860938d5ed30b4755d29db15b4cd.png

 

NFS Settings:

Screenshot_20190821_173331.png.1b5a52f1843c33e6e07b602646f880f5.png

 

 

I can't see how my CPU usage would rise ~40% just by transferring a file over my network, rather than locally. Unless it does require that much processing power.

 

Any ideas?

 

Cheers

Link to comment
1 hour ago, Frank1940 said:

In a Terminal session (either via SSH or GUI), type   htop   on the command line.  That should give a picture of what your CPU hog on a real time basis.  

I'm a little confused as to what I'm seeing honestly, load is sky high yet shfs only appears to be a using a few percent.

 

Screenshot_20190822_013036.png.548313cfb37dbf3bd2185a90ca83c8ee.png

 

Cheers

Link to comment
5 minutes ago, Dataone said:

I'm a little confused as to what I'm seeing honestly, load is sky high yet shfs only appears to be a using a few percent.

 

Screenshot_20190822_013036.png.548313cfb37dbf3bd2185a90ca83c8ee.png

 

Cheers

Try using top instead. it also shows the io wait like this:

%Cpu(s):  0.3 us,  1.1 sy,  0.5 ni, 98.2 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

If wa is high, it is waiting for your disks.

Link to comment
6 hours ago, Struck said:

Try using top instead. it also shows the io wait like this:


%Cpu(s):  0.3 us,  1.1 sy,  0.5 ni, 98.2 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

If wa is high, it is waiting for your disks.

 

Well that appears to be the case unfortunately. However I'm still unsure as to why I'm seeing a massive CPU usage hike and throughput decrease when using NFS rather than transferring files locally.

 

Locally:

%Cpu(s):  0.7 us, 13.5 sy,  0.2 ni, 57.4 id, 26.7 wa,  0.0 hi,  1.5 si,  0.0 st

 

NFS:

%Cpu(s):  1.0 us,  7.7 sy,  0.3 ni,  0.2 id, 88.4 wa,  0.0 hi,  2.3 si,  0.0 st

 

These aren't shabby drives either, White Label WD 8TB's, which is why I'm suprised I'm having 'waiting' issues. Any ideas/possibilities of tuning this to make it work a little better?

 

Thanks.

Link to comment

Are you sure that wait time truly is a problem?  The only way that wait time would be a problem is if was slowing down some other process that was running concurrently.  Are you seeing any real slowdowns in things like the GUI response?  Your first screen capture (the one showing both CPU at 100%) is of the Dashboard screen of the GUI.  Was it sluggish or non-responsive? 

 

EDIT: Have you tried a SMB transfer to see what happens there?  I know NFS used to have less overhead than SMB did a few years but I not sure this is still the case. 

Edited by Frank1940
Link to comment
%Cpu(s):  1.2 us,  5.9 sy,  0.2 ni, 88.6 id,  2.9 wa,  0.0 hi,  1.3 si,  0.0 st

That's the output while speed seems to be throttled, with SMB.

 

I'm starting to think this might actually be an issue with my client and not the server. Here is my network history graph from client:

 

Screenshot_20190822_121822.png.981e0ca8944f747e2f58f6f1e22a48cd.png

 

As you can see it starts off fine (perhaps a buffer?) then drops to a crawl just like NFS. I think this means its not a server issue. I might need to look into changing my IO scheduler.

 

Cheers

Edited by Dataone
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.