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.

Memory Usage

Featured Replies

Good Morning.

 

I have an unRaid box with two 2tb data drives , two 1tb data, 2tb parity and 500gb cache. I am running sabnzb, couch potato, sick beard and unmenu on it. I have 2gb of ram in the server and I noticed that when I telnet to the box and use top, that the memory is almost all being used, leaving 50mb only unused.  Anyone with a similar setup that has memory usage issues?  How much memory would my setup require if I did not run the extra programs, just a base unraid server?

 

Thanks in advance for any input,

 

Ezbox

Good Morning.

 

I have an unRaid box with two 2tb data drives , two 1tb data, 2tb parity and 500gb cache. I am running sabnzb, couch potato, sick beard and unmenu on it. I have 2gb of ram in the server and I noticed that when I telnet to the box and use top, that the memory is almost all being used, leaving 50mb only unused.  Anyone with a similar setup that has memory usage issues?  How much memory would my setup require if I did not run the extra programs, just a base unraid server?

 

Thanks in advance for any input,

 

Ezbox

The disk cache will ALWAYS use up as much memory as you give it.  The issue is if it will free up some if a program needs it instead.

 

To see the actual free memory type:

free

 

As an example on my older server with 512 Meg of RAM...[pre]root@Tower:/boot/packages# free

            total      used      free    shared    buffers    cached

Mem:        497804    466544      31260          0      96932    253108

-/+ buffers/cache:    116504    381300

Swap:            0          0          0

[/pre]This line in the resulting output shows I have 381 Meg potentially free if I don't count that in the buffer cache.

-/+ buffers/cache:    116504    381300

 

You might want to set the cache pressure to a higher value than unRAID normally uses to allow that.  (Normally it sets it to 60, a value of 200 is much better for your usage profile)

To see the current setting type:

sysctl  vm.vfs_cache_pressure

 

To set it type:

sysctl -w vm.vfs_cache_pressure=200

 

 

Joe L.

Hey Joe,

 

How would one determine a "correct" cache pressure value for their own usage profile?  I have 4GB of ram and have currently set my pressure value to 50 (passed in as a parameter to the cache_dirs script)...

 

thx!

-alex

Hey Joe,

 

How would one determine a "correct" cache pressure value for their own usage profile?  I have 4GB of ram and have currently set my pressure value to 50 (passed in as a parameter to the cache_dirs script)...

 

thx!

-alex

Are you running any add-ons that use a lot of RAM???  If so, use a value greater than 100.  If you use a value less than 100 the disk buffer cache is NOT freed to make space for running processes, but the data recently accessed is kept instead and programs that have been idle for a while are killed off in an attempt to free memory.

 

I personally would rather not have a process killed to free memory.  (usually emhttp is killed first, then the samba processes)

 

Joe L.

I currently run unmenu, PS3 Media Server, Air Video Server, SABNzbd, and a few other misc packages.  Should I too switch to a setting of around 200?

I currently run unmenu, PS3 Media Server, Air Video Server, SABNzbd, and a few other misc packages.  Should I too switch to a setting of around 200?

yes

I have the following ouputs:

 

root@Tower:~# free
            total       used       free     shared    buffers     cached
Mem:       2074384    2018644      55740          0     293320    1616248
-/+ buffers/cache:     109076    1965308
Swap:            0          0          0

 

and

 

root@Tower:~# sysctl  vm.vfs_cache_pressure
vm.vfs_cache_pressure = 10

This is the default - never changed it.

 

I am usually running ruTorrent and Hamachi and once a day I run YAMJ.

according to "top" rutorrent and YAMJ (java) consume about 3% of MEM each (2GB system memory)

 

What do you think I should set cache_pressure to?

 

Archived

This topic is now archived and is closed to further replies.

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.