Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[7.0.0] Excessive flash drive activity...

Featured Replies

I noted this item in the 7.0.0 changelog, have never thought about it nor looked at it previously.  Fortunately/unfortunately I'm now curious so I guess my first question is...What is classed as "excessive"?

 

I decided to manually capture the below to create a baseline of sorts and I also did a little forum surfing.  So my second question... Are the results that I've captured today concerning?

image.png.eb08471185d1d4f988e52ee4fc3e35ba.png

 

For the 1 hour up to 13:07 I ran the below...

# inotifywatch -r -t 3600 /boot
Establishing watches...
Finished establishing watches, now collecting statistics.
total  access  close_nowrite  open  filename
84684  28230   28227          28227  /boot/config/shares/
60702  22978   18870          18854  /boot/config/
43866  35444   4211           4211  /boot/
37377  12459   12459          12459  /boot/config/plugins/dynamix/
4796   2398    1199           1199  /boot/config/plugins/dynamix/notifications/agents/
4796   2398    1199           1199  /boot/config/plugins/dynamix/notifications/
2464   1120    672            672   /boot/config/plugins/dockerMan/templates/limetech/
2464   1568    448            448   /boot/config/plugins/dockerMan/
2240   1344    448            448   /boot/config/plugins/dockerMan/templates/
1659   553     553            553   /boot/config/plugins/ipmi/
1344   896     224            224   /boot/config/plugins/dockerMan/templates-user/
342    114     114            114   /boot/config/plugins/gpustat/
100    88      6              6     /boot/config/plugins/
27     9       9              9     /boot/config/plugins/community.applications/
18     6       6              6     /boot/config/plugins/zfs.master/
15     5       5              5     /boot/config/plugins/compose.manager/
4      2       1              1     /boot/config/wireguard/

 

As of typing my dashboard reports the below, this is largely typical from my observations...

image.png.23c91b203d8d3c3c035ed7586f86b57d.png


The only change I've implemented recently other than the upgrade to 7 is to increase my ZFS Arc Max limit and to add a L2 Arc to one of my pools.  I've not implemented the fix mentioned in the change log, from my read it sound like a worthwhile activity as 500MB RAM is nothing really, I'm just interested to get a proper view on the above.

 

Thanks,


K

Solved by KillerK

  • Community Expert

Since 6.12 /usr and /lib are mounted from the squashfs on the flash drive, so any reads from its contents means reading from the flash drive, that's normal. The posted method will load /usr in RAM and reduce these, /lib is still read from the flash drive. 

Edited by Kilrah

  • Author

So addional question if I may.  I realised there is something else I am/was messing with in addition to the ZFS Max Arc limit.  I'd temporarily removed a boot time modification I'd previously made to nginx's rate limiting so this was back to stock during the time period I was seeing the high flash usage.

 

I forgot about this when I added the /boot/config/fastusr file and rebooted about 30 mins ago but I'm now seeing a much improved as in reduced read amount on the flash storage.  I know I've muddied the water with the 2 changes at the same time but could the rate limit change be involved here, the below is in my /boot/config/go file...

 

/usr/bin/sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/s;g" /etc/nginx/nginx.conf

 

  • Community Expert

I don't think so. Fastusr will definitely make a difference though.

  • Author
  • Solution

Concluding this thread now and answering a couple of my own questions hoping others might find it useful.

  1. What is classed as excessive?  In my testing anything over 1 read per minute of the flash drive would be excessive.
  2. Where my results above a concern?  Yes, as they exceeded the above and at worst were over 200 reads per minute.

The resolution was to apply the /boot/config/fastusr config which @Kilrah kindly confirmed.

 

I did retest my scenarios today by again removing the nginx rate limit alteration and re-ran with and without the fastusr fix.  I my usecase I pushed the ZFS Arc to the max, kept the server busy with various activities and managed to replicate the issue by then browsing the unraid UI which by then slow which then started to notch up the read counter on the flash drive.

 

image.thumb.png.1ef2d122ac6eceb0233e7d59c8084676.png

  • Community Expert
16 hours ago, KillerK said:

What is classed as excessive?  In my testing anything over 1 read per minute of the flash drive would be excessive.

Question is why. It's writes that need to be limited to the flash drive, reads don't matter.

  • Author

I only started looking at flash usage because of system performance or more specifically the unraid UI being laggy. It's an assumption but I believe this was triggered as I had overridden unraids default zfs max arc limit to more fully utilise the available ram. Then once the system was being loaded that's when I noted the increasing read counts.

 

The way the fastusr note in the changelog reads about flash usage its not a simple if x do y and infers their is an amount read which is acceptable but doesn't clarify this. Hence my question.

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.