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 problem

Featured Replies

Hi

 

I'm running Unraid 5.0b7 on a new box with 4 GB of RAM. However i seem to be running out of memory, causing for example sabnzbd to crash several times per day.

 

When I run the top command i get the following output:

 

Mem:  4057380k total,  3843184k used,  214196k free,  187120k buffers

 

And I have no idea what is taking up all my free memory. For example I just shut down a VM running in virtual box, using 1 GB of RAM, and a few minutes after those 1 GB are consumed by 'the void' leaving only a 1-300 MB available... none of the listed processes in the top window shows any unreasonable amount of memory usage. How can I find the sinner?

 

Any help appreciated!

syslog.zip

  • Author

uh.. just noted this line below the memory info line

 

Swap:        0k total,        0k used,        0k free,  3281076k cached

 

does that mean that  it is swap taking up all the memory? And if that is the case, is this expected behaviour?

uh.. just noted this line below the memory info line

 

Swap:        0k total,        0k used,        0k free,  3281076k cached

 

does that mean that  it is swap taking up all the memory? And if that is the case, is this expected behaviour?

No, it indicates there is no swap space, (as unRAID dores not define a swap device) but that the bulk of memory is being used as disk buffer cache.  It is the expected behavior.  Linux will buffer as much it can.  It will re-use the least-frequently accessed buffer block when a new block is read from the disk.

 

Basically, all it would take to have most of your ram allocated as buffer space is to play a single 4Gig DVD ISO image.  No block would be re-read (unless you replayed a chapter) and it would keep everything read into memory as long as it could until you play a different movie.

  • Author

all right that makes sense. must be something else that causes apps to crash then, than the memory "usage"

 

Thanks Joe L

It could still be memory issues or more specifically lack of swap space. I've seen apps on linux misbehave badly in the past when there wasn't any swapspace configured. If you're running unmenu, install the unraid-swapfile package. Put the swapfile on the cache drive or an unmanaged drive, never on a parity protected drive. Run like that for a while and see if it helps stability of those apps.

 

Crashing applications could also point toward faulty memory, perhaps you should run memtest if you haven't already.

No, it indicates there is no swap space, (as unRAID dores not define a swap device) but that the bulk of memory is being used as disk buffer cache.  It is the expected behavior.   Linux will buffer as much it can.  It will re-use the least-frequently accessed buffer block when a new block is read from the disk.

 

JoeL, is there a way to limit this disk buffer cache to a fixed Max size??

No, it indicates there is no swap space, (as unRAID dores not define a swap device) but that the bulk of memory is being used as disk buffer cache.  It is the expected behavior.   Linux will buffer as much it can.  It will re-use the least-frequently accessed buffer block when a new block is read from the disk.

 

JoeL, is there a way to limit this disk buffer cache to a fixed Max size??

no.  It is a Linux feature...    Why would you want to limit it?  Do you want it to run slower?

I freaked out at this myself...

 

It works for me... great when i want to rewind a movie if i wander off for a bit or answer the phone and yap for a bit. no buffering lag.

JoeL, is there a way to limit this disk buffer cache to a fixed Max size??

 

You shouldn't need to think about this. The disk buffer cache will shrink as needed to give programs the space they request, even before swap space is used.

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.