EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: Re: Linux buff/cache memory too high when running Archiver Appliance
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Wang, Lin" <wanglin at ihep.ac.cn>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 5 Feb 2024 09:26:20 -0800
On 2/4/24 23:52, Ralph Lange via Tech-talk wrote:
Hello Lin,

Usage of memory for buffers and cache is handled by the Linux kernel, and I have so far not seen a situation where it would do a particularly bad job.

Put more directly.  "high" memory usage by disk cache is normal on Linux.

fyi. the disk cache can be flushed by writing "3" to "/proc/sys/vm/drop_caches"

I use this occasionally when benchmarking to understand the effects of caching.

I would caution against trying this on a production system!

You might also look into the "iotop" and "iostat" commands.


The system making a noticeably "slow" impression is more often related to swapping. The interesting number would be the memory usage of your appliance processes (virtual and resident memory) compared to the installed memory.

I would suggest looking at process resident memory usage.  This the "RES" column
shown by the "top" command.  Hint, while "top" is running, press 'M' to sort by
resident memory usage.


Keep in mind that on a Virtual Machine, you have another independent layer of memory usage and swapping in your virtualization engine. If your virtualization is overbooked and running low on memory, guest VMs may be swapped and show degraded behavior without the guest OSs even knowing.

Assuming the your VM host is also Linux, then I would suggest starting by
looking at memory and storage statistics of the host.


References:
Linux buff/cache memory too high when running Archiver Appliance Wang, Lin via Tech-talk
Re: Linux buff/cache memory too high when running Archiver Appliance Ralph Lange via Tech-talk

Navigate by Date:
Prev: RE: Issue with Stream Device. Timeout only on Reconnect Mark Rivers via Tech-talk
Next: No CA connection from server to ioc Luchini, Kristi L. via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
Navigate by Thread:
Prev: Re: Linux buff/cache memory too high when running Archiver Appliance Ralph Lange via Tech-talk
Next: EPICS Summer School 2024 - HZB Marcel Bajdel via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
ANJ, 05 Feb 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·