SuSe 12.3 Memory Question

Hi,

I have a builded a JeOS from the Suse Sudio and have installed the ISO on hard disk. One thing that I want to find out is how i tune the memory usage of tmpfs. I have 4GB of real memory on the system but when I use free -m or top the system only show 2GB of RAM and also I have 2GB of swap partition. As you can see below that the combination tmpfs and the devtmpfs has taken away half of the real memory for temporary file system. I tried to look every where and could not find the config file to tune the values. It is not found in the /etc/fstab. BTW, I do not think that I need that much of space for the tmpfs. Any help will be much appreciated. Thanks.

Filesystem Size Used Avail Use% Mounted on
devtmpfs 990M 48K 990M 1% /dev
tmpfs 1000M 0 1000M 0% /dev/shm
tmpfs 1000M 2.1M 998M 1% /run
/dev/sda2 20G 16G 2.9G 85% /
tmpfs 1000M 0 1000M 0% /sys/fs/cgroup
tmpfs 1000M 2.1M 998M 1% /var/lock
tmpfs 1000M 2.1M 998M 1% /var/run

On 2013-10-15 04:06, AlberK wrote:
>
> Hi,
>
> I have a builded a JeOS from the Suse Sudio and have installed the ISO
> on hard disk. One thing that I want to find out is how i tune the
> memory usage of tmpfs. I have 4GB of real memory on the system but when
> I use free -m or top the system only show 2GB of RAM and also I have 2GB
> of swap partition. As you can see below that the combination tmpfs and
> the devtmpfs has taken away half of the real memory for temporary file
> system.

No, I don’t see :slight_smile:

The tmpfs is not that daft, it takes only the ram it actually needs for
files, which is a little more than 6 megs in your case.

About the used memory, remember that Linux uses as much memory as it
can, one part for processes, and whatever is left goes to caches and
buffers.

The tmpfs are set up from systemd services.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))