Latest News:
2018-12-21: XigmaNAS 11.2.0.4.6315 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

VERY HIGH MEMORY USAGE.. 85% AT IDLE

XigmaNAS Basic Tune-up
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Transistor1
NewUser
NewUser
Posts: 9
Joined: 19 Jun 2015 14:04
Status: Offline

VERY HIGH MEMORY USAGE.. 85% AT IDLE

#1

Post by Transistor1 » 05 Jan 2019 10:15

Hi all..

I just install, XigmaNAS 11.2.0.4.6315, at a usb stick.. ( embedded istallation )
When i login to GUI i see 85% memory usage at idle..
I have 2 GB of ram and with previous version ( 9.2 shigawire ) i had about 20% usage..

If i try to list the total files of a directory, with thousand files, my ram reaches 99% and system begin using swap file, but after a little it becomes complete unresponsive and i have to hard reset it..

IS it normal this high RAM usage at idle? ( I noticed that Wired Ram has the most % usage.. )
Is there a way to unload something so i have more RAM available?

I m using the NAS mainly for streaming media, as a central files storing device and occasionally for torrents..

User avatar
Snufkin
Advanced User
Advanced User
Posts: 256
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: VERY HIGH MEMORY USAGE.. 85% AT IDLE

#2

Post by Snufkin » 05 Jan 2019 10:55

Transistor1 wrote:
05 Jan 2019 10:15
If i try to list the total files of a directory, with thousand files, my ram reaches 99% and system begin using swap file, but after a little it becomes complete unresponsive and i have to hard reset it..
Sorry, had no chance to answer your MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM ) post overnight :D, fell asleep.

I think, you mistakenly used FreeBSD Memory Disk for your SWAP file.

Code: Select all

/dev/md3
Using swap to free RAM by putting swap file in RAM disk is not what you want, isn't it?

For a while I'd suggest reverting your XigmaNAS swap settings to their defaults, e.g. device and /dev/da0s2b. Then it's good idea idea to monitor swap usage for some time, weeks, may be months. At the end you'll be able to understand if you actually need swap file on HDD or you can leave it in default location.
EDIT: Just checked, default boot USB swap partition is /dev/da0p3
XNAS 11.2.0.4.6315 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

Transistor1
NewUser
NewUser
Posts: 9
Joined: 19 Jun 2015 14:04
Status: Offline

Re: VERY HIGH MEMORY USAGE.. 85% AT IDLE

#3

Post by Transistor1 » 05 Jan 2019 13:02

Thanks again Snufkin for all of your help!!! :D
I think you 're right.. i dont want swap file to be at my RAM, at all..
I have little amount of RAM, so i would prefer HDD for my swap.. ( File not partition, as i don't want to mess with my Data, creating partitions )
Default configuration puts swap at /dev/da2s2b.. A partition at my usb stick, but i read that read - right operations might destroy it..
I had the same problem with default swap location too.. After a little my RAM hits 99% and then it starts using swap.. then the system become unresponsive..
My problem is the little amount of rAM i have..
At idle it shows 85% usage..
Is there a way to unload things i dont need?
Thanks again and happy new year!!! :)

EDIT: I have found a way for using HDD ( through commands ), but i need to write a line to /etc/fstab, but this file don't keep the changes at reboot ( embedded system ).
So every time i rebbot, i must manually give 4 - 5 commands..

User avatar
Snufkin
Advanced User
Advanced User
Posts: 256
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: VERY HIGH MEMORY USAGE.. 85% AT IDLE

#4

Post by Snufkin » 05 Jan 2019 15:19

Transistor1 wrote:
05 Jan 2019 13:02
Default configuration puts swap at /dev/da2s2b.. A partition at my usb stick, but i read that read - right operations might destroy it.
Would you like to follow advice to restore default swap configuration?
If yes, then
  1. look at Diagnostics | Information | Partitions tab,
  2. find there info about /dev/da0 device, it's USB stick for embedded installation,
  3. look at line with freebsd-swap words and note the number immediately before the words, this is swap partition number, default is 3,
  4. go to System | Advanced | Swap page,
  5. select Type: device and enter Device: /dev/da0p3, where 3 is swap partition number noted earlier,
  6. save changes, the page will refresh immediately to reflect swap status,
  7. go to Status | System page and make sure swap status is OK,
  8. save your config.xml file.
This is the point where you can start monitoring memory and swap usage in Status | Processes page
Transistor1 wrote:
05 Jan 2019 13:02
At idle it shows 85% usage.
It's fine, because the XigmaNAS memory footprint became bigger since 9.2 Shigawire.
Why should memory be idle when it is available? :)
I had positive experience running my old NAS with 2 GB RAM on board only.
XNAS 11.2.0.4.6315 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4693
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: VERY HIGH MEMORY USAGE.. 85% AT IDLE

#5

Post by raulfg3 » 14 Jan 2019 15:47

Transistor1 wrote:
05 Jan 2019 13:02
Thanks again Snufkin for all of your help!!! :D
I think you 're right.. i dont want swap file to be at my RAM, at all..
I have little amount of RAM, so i would prefer HDD for my swap.. ( File not partition, as i don't want to mess with my Data, creating partitions )
Default configuration puts swap at /dev/da2s2b.. A partition at my usb stick, but i read that read - right operations might destroy it..
I had the same problem with default swap location too.. After a little my RAM hits 99% and then it starts using swap.. then the system become unresponsive..
My problem is the little amount of rAM i have..
At idle it shows 85% usage..
Is there a way to unload things i dont need?
DSo a full install (ZFSonRoot install) to free RAM used by embeded to load XigmaNAS <- You need a good brand USB device .

If USB is 16GB in size, you can define 8GB for XigmaNAS Boot and 16GB as Swap,
XigmaNAS 11.2.0.4 - Omnius (revision 6195)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes
Old Wiki

Post Reply

Return to “XigmaNAS Basic Tune-up”