Informix

 View Only
Expand all | Collapse all

Check if buffers are in swap?

  • 1.  Check if buffers are in swap?

    Posted Sun December 31, 2023 07:50 AM

    Hello,

    maybe last question of 2023 :-)

    I noticed slow downs during last week in our single instance on RHEL8 - i suspect storage (SAN) speed slowdowns, but not totally sure.

    Also maybe swap oocured with oninit processes ? How can i check to verify this ?

    Thanks and good start for 2024!



    ------------------------------
    Marc Demhartner
    ------------------------------


  • 2.  RE: Check if buffers are in swap?

    IBM Champion
    Posted Sun December 31, 2023 09:15 AM

    Look at the memfree and swaptotal versus swapfree lines in:

    $ cat /proc/meminfo



    ------------------------------
    Art S. Kagel, President and Principal Consultant
    ASK Database Management Corp.
    www.askdbmgt.com
    ------------------------------



  • 3.  RE: Check if buffers are in swap?

    IBM Champion
    Posted Mon January 01, 2024 01:16 PM

    Hello,

    you can find swap usage by process with (as root ofc):

    for x in /proc/*/status; do grep -q VmSwap $x && awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $x ; done | sort -k 2 -n -r | less

    Informix processes are oninit so all of those should have 0 usage.

    HTH

    Hrvoje



    ------------------------------
    Hrvoje Zokovic
    ------------------------------



  • 4.  RE: Check if buffers are in swap?

    Posted Tue January 02, 2024 08:00 AM

    Thanks.

    Looks like its the case.. i have many entries there with oninit 4784 KB 

    How to prevent oninit to get swapped? 



    ------------------------------
    Marc Demhartner
    ------------------------------



  • 5.  RE: Check if buffers are in swap?