Memory usage on DS710+ with latest DSM 3.1

An update to DSM3.1 providing multiple volumes on a single Raid, dual disks redundancy in SHR, shared folder synchronization, and other updates
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
Snoopy
Novice
Novice
Posts: 50
Joined: Sun Nov 08, 2009 12:02 am

Memory usage on DS710+ with latest DSM 3.1

Unread post by Snoopy » Mon Mar 07, 2011 11:04 pm

Hello Guys,
I have run the top command on my new DS710 and noticed that there are several processes running that take loads of memory all together. out of 1024 MB there is only 250 MB free. Not much is actually happening on the Disk station. Is this normal that these processes run in so many copies and each of them takes 5-8% of RAM?

PID PPID USER STAT VSZ %MEM %CPU COMMAND
24752 24748 nobody S 89332 8.7 0.0 /usr/syno/apache/bin/httpd -DHAVE_PHP
24753 24748 nobody S 89332 8.7 0.0 /usr/syno/apache/bin/httpd -DHAVE_PHP
24748 1 root S 89200 8.7 0.0 /usr/syno/apache/bin/httpd -DHAVE_PHP
24754 24748 nobody S 89200 8.7 0.0 /usr/syno/apache/bin/httpd -DHAVE_PHP
27604 24748 nobody S 89200 8.7 0.0 /usr/syno/apache/bin/httpd -DHAVE_PHP
30509 30506 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30510 30506 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30504 1 root S < 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30506 30504 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30507 30506 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30508 30506 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30511 30506 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
30512 30506 root S 61096 5.9 0.0 /usr/syno/sbin/synoaudiod
24368 24301 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24377 24368 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24378 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24379 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24380 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24381 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24384 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24385 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24386 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24387 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
24388 24377 admin S 52428 5.1 0.0 /usr/syno/mysql/libexec/mysqld --basedir=/usr/syno/mysql --datadir=/volume1/@database/mysql --user=admin --max_allowed_packet=8M --log-error=/volume1/@database/mysql
9751 1 root S 39568 3.8 0.0 /usr/syno/sbin/amuled -f
9753 9751 root S 39568 3.8 0.0 /usr/syno/sbin/amuled -f
9754 9753 root S 39568 3.8 0.0 /usr/syno/sbin/amuled -f
9756 9753 root S 39568 3.8 0.0 /usr/syno/sbin/amuled -f
27936 3994 admin S 33772 3.3 0.0 postgres: admin mediaserver [local] idle
9599 3994 admin S 33668 3.2 0.0 postgres: admin download [local] idle
3994 1 admin S 32700 3.1 0.0 /usr/syno/pgsql/bin/postgres -D /var/services/pgsql --config_file=/usr/syno/pgsql/etc/postgresql.conf --hba_file=/usr/syno/pgsql/etc/pg_hba.conf
3996 3994 admin S 32700 3.1 0.0 postgres: writer process
3997 3994 admin S 32700 3.1 0.0 postgres: wal writer process
6182 1 root S N 23080 2.2 0.0 /usr/syno/sbin/synoindexd
7404 6970 root S 18504 1.8 0.0 /usr/syno/sbin/smbd -D
32081 6970 root S 18416 1.8 0.0 /usr/syno/sbin/smbd -D
6970 1 root S 18220 1.7 0.0 /usr/syno/sbin/smbd -D
6972 6970 root S 18220 1.7 0.0 /usr/syno/sbin/smbd -D
6171 1 root S 14824 1.4 0.0 /usr/syno/sbin/fileindexd
6265 1 root S 13960 1.3 0.0 /usr/syno/sbin/nmbd -D
4136 1 root S 13936 1.3 0.0 /usr/syno/sbin/hotplugd
3736 1 root S < 10640 1.0 0.0 /usr/syno/bin/findhostd
9593 1 root S 10100 0.9 0.0 /usr/syno/sbin/scheduler
9765 1 root S 9792 0.9 0.0 /usr/syno/sbin/synoamulecgid
6188 1 root S N 8036 0.7 0.0 /usr/syno/bin/synomkthumbd
7167 1 root S N 8032 0.7 0.0 /usr/syno/sbin/synomkflvd
DS710+ on 3.1-1605

Snoopy
Novice
Novice
Posts: 50
Joined: Sun Nov 08, 2009 12:02 am

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by Snoopy » Mon Mar 07, 2011 11:39 pm

And here is the information from memory utilization. Please note that only 130 MB of RAM is free out of 1024 MB total. At the same time, the memory utilization chart in DS Resource monitor shows that memory is used only in 20%, while it should show usage of at least 85%.

DS710> cat /proc/meminfo
MemTotal: 1016784 kB
MemFree: 138324 kB
Buffers: 348652 kB
Cached: 356472 kB
SwapCached: 56 kB
Active: 280320 kB
Inactive: 493880 kB
Active(anon): 38348 kB
Inactive(anon): 40464 kB
Active(file): 241972 kB
Inactive(file): 453416 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097080 kB
SwapFree: 2096900 kB
Dirty: 15616 kB
Writeback: 12136 kB
AnonPages: 69068 kB
Mapped: 26536 kB
Shmem: 9688 kB
Slab: 90288 kB
SReclaimable: 72156 kB
SUnreclaim: 18132 kB
KernelStack: 1176 kB
PageTables: 1888 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2605472 kB
Committed_AS: 280648 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 265612 kB
VmallocChunk: 34359466112 kB
DirectMap4k: 2624 kB
DirectMap2M: 1036288 kB
DS710>
DS710+ on 3.1-1605

User avatar
maxxfi
Compiler
Compiler
Posts: 6794
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by maxxfi » Tue Mar 08, 2011 8:35 am

In linux world it's quite normal.
Programs tend to use most of the available memory, if nothing at least as cache.
No longer using Synology NAS, moved to more open source solutions.
DS-106j > DS-210j > DS-411

User avatar
jekyll
Wizard
Wizard
Posts: 1832
Joined: Thu Feb 28, 2008 7:55 pm
Location: Epworth - UK
Contact:

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by jekyll » Tue Mar 08, 2011 9:20 am

It's nothing to worry about, NAS servers are known to be heavy with physical memory.
Synology DS1010+ 4.3-3827-U8 | DS410 4.3-3827-U7 | DS509+ 4.2-3252 | DS209+ 3.1-1748 | VS80 x 2

APC UPS1500RM2U | APC AP7920 | Linksys SRW224G4P | Linksys SRW224G4 | 802.3af IP cameras x 10

www.jekyll.info

Snoopy
Novice
Novice
Posts: 50
Joined: Sun Nov 08, 2009 12:02 am

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by Snoopy » Tue Mar 08, 2011 9:21 am

maxxfi wrote:In linux world it's quite normal.
Programs tend to use most of the available memory, if nothing at least as cache.
In that case, what about the Resource Monitor in DS? What is it showing actually and how is it relevant for anything?

One of the reasons I chose to upgrade DS109 to DS710+ is the 1 GB of RAM in DS710+ as opposed to only 128 MB in DS109. On DS109 the swap file is constantly used, because 128 MB RAM is not enough to store the data. For that reason I expected that having 1GB of RAM, the DS710 will almost never use the swap file, as it should have enough space in RAM. Constant memory swapping degrades performance and causes HDDs to die quickly. Obviously I don't want that to happen to my HDDs.
Now, seeing DS710+ using 900 MB of RAM supposedly for nothing, I have a bit concerned that it will also start swapping memory as soon as more activities will take place.

Any comments on this issue?
DS710+ on 3.1-1605

kungfu71186
Trainee
Trainee
Posts: 19
Joined: Tue Mar 08, 2011 6:56 pm

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by kungfu71186 » Tue Mar 08, 2011 6:58 pm

They way linux works with memory is different than windows. Just because it looks like its using that memory, doesn't mean it is. What i mean by that is that linux will use up as much memory as possible and it will swap it where it's needed. so using high amounts of memory on linux is nothing to worry about.

hypertonik
Enlightened
Enlightened
Posts: 475
Joined: Tue Jun 02, 2009 10:05 am

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by hypertonik » Wed Mar 09, 2011 11:59 am

Snoopy wrote: Now, seeing DS710+ using 900 MB of RAM supposedly for nothing, I have a bit concerned that it will also start swapping memory as soon as more activities will take place.

Any comments on this issue?
Since RAM is used for cache, it is freed for the cache for other needs as soon as they arise, so no swapping should occur.

User avatar
vvv850
Experienced
Experienced
Posts: 133
Joined: Wed Jan 20, 2010 2:38 pm

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by vvv850 » Wed Mar 09, 2011 1:49 pm

I think it's something similar with Win 7 resource manager.

Image

Even though i have 2GB ram and 1.17GB are used, it tells me that there are 100MB free and 835MB available.
DS209+II DSM 2.3-1139 <> 2x1TB Seagate ST31000528AS firmware CC38 RAID1
DS710+ DSM 2.3-1161 <> 2x1TB Seagate ST31000528AS firmware CC38 RAID1

Snoopy
Novice
Novice
Posts: 50
Joined: Sun Nov 08, 2009 12:02 am

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by Snoopy » Wed Mar 09, 2011 2:37 pm

That is interesting. When is then the difference between Free and Available ? :)
DS710+ on 3.1-1605

User avatar
vvv850
Experienced
Experienced
Posts: 133
Joined: Wed Jan 20, 2010 2:38 pm

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by vvv850 » Wed Mar 09, 2011 4:59 pm

Free memory is the space available without any pre-cache on it. And available is the space that you can use before you get an Out of memory error. This is my opinion at least.
DS209+II DSM 2.3-1139 <> 2x1TB Seagate ST31000528AS firmware CC38 RAID1
DS710+ DSM 2.3-1161 <> 2x1TB Seagate ST31000528AS firmware CC38 RAID1

kungfu71186
Trainee
Trainee
Posts: 19
Joined: Tue Mar 08, 2011 6:56 pm

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by kungfu71186 » Wed Mar 09, 2011 6:34 pm

vvv850 wrote:Free memory is the space available without any pre-cache on it. And available is the space that you can use before you get an Out of memory error. This is my opinion at least.
Kind of, except linux will continue to use all the memory before it goes to the available memory.

Heres an decent article explaining how linux manages its memory.

http://chrisjohnston.org/2009/why-on-li ... -ram-usage

There was some article i read before about linux memory, but i can't seem to find it.

Snoopy
Novice
Novice
Posts: 50
Joined: Sun Nov 08, 2009 12:02 am

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by Snoopy » Thu Mar 10, 2011 2:34 pm

So I guess the conclusion from all this is that until swap file is not being used, then we do not need to worry about the size of RAM being occupied at any given moment.
DS710+ on 3.1-1605

User avatar
maxxfi
Compiler
Compiler
Posts: 6794
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: Memory usage on DS710+ with latest DSM 3.1

Unread post by maxxfi » Thu Mar 10, 2011 2:42 pm

Exactly.
No longer using Synology NAS, moved to more open source solutions.
DS-106j > DS-210j > DS-411

Locked

Return to “DiskStation Manager 3.1 - 1594”