Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Don_Paterson
MVP Gold
MVP Gold

R82 using more swap than R81.20

 

Anyone know why an R82 SMS would use more swap than an R81.20 SMS?

 

Both have 8GB RAM.

The R82 SMS has 8 CPU cores and the R81.20 SMS has 4

Both are on Hyper-V (Build: 20348-10.0-3-0.3692)

R81.20 is unpatched (take 631) and R82 is JHFA Take 33

R81.20 uses 70M of swp and R82 uses up to 2G when doing nothing (idle) - and after 1 hour of uptime.

SmartConsole is connected but not used.

0 Kudos
28 Replies
Vincent_Bacher

Is this a lab setup or why did you just assign 8GB of RAM?
Our two main MDS systems running R82 show 0MB and 10MB swap usage respectively -
but then again, we run them with slightly more RAM than 8GB 😉

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
Don_Paterson
MVP Gold
MVP Gold

😄

 

Yes, it is a lab setup and RAM is a little short in that lab.

 

I have a separate VMware Workstation lab and an R82 SMS with 16GB RAM also uses zero swap.

 

I am looking to see if there is a difference between the two versions that is making the difference.

Linux 3.10 and 4.18 is obviously significant. 

The mem used on all of them is around 4.5G.

0 Kudos
the_rock
MVP Platinum
MVP Platinum

My colleague is upgrading eve-ng, so I will check once its up later on. Personally, did not see any difference with R81.20, but will confirm in few hours. Where did you verify this? cpview output, I assume?

Best,
Andy
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

htop and free -h

 

I found this so far:

https://access.redhat.com/solutions/7042476

 

Resolution

  • Changes in virtual memory (VM) management between RHEL 7 and 8 may cause different patterns of swap usage even under similar workloads and tunings
  • Swap usage or a trend towards 100% swap used is not necessarily indicative of memory pressure.
  • Recommend monitoring other statistics in order to determine if the system is under memory pressure (see Diagnostic Steps)

 

I wonder if the changes in swap behaviour can affect performance in some cases where, for example, the storage of a lab is not super fast and swap usage exposes that.

 

Note:

R81.20 is RHEL 7 and R82 is RHEL 8

0 Kudos
Vincent_Bacher

I think that even if there are changes in swap usage, this should not be noticeable in the lab. However, if a lot of swap is needed in production and the disks are extremely slow, then this is obviously not good.

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
Don_Paterson
MVP Gold
MVP Gold

I have indeed not seen a difference in many tests. However, there do seem to be some lagging issues during the busier times of the day when more users are using the shared lab platform.

Can't quite put my finger on it yet.

 

In one case the swp went to 4G but that was on a 6GB RAM SMS. That's before the upgrade to 8G installed into the VM.

0 Kudos
Vincent_Bacher

Nevertheless, I would never configure less than 16GB, even in the lab.

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
0 Kudos
the_rock
MVP Platinum
MVP Platinum

100%, thats safest bet, in my opinion. I guess 12 GB could work, but probably not enough in a long run.

Best,
Andy
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

With you 100% 

Sometimes we don't have a choice in these things.

R82 Release Notes do state 8G (MINIMUM), and we all know what that means..

0 Kudos
Vincent_Bacher

I understand that sometimes there is no other option.
Of course, it's different in production.
When it comes to management, I would always go big rather than small, if possible. That's why our two main MDS have 502 GB of RAM.

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

Yes!

CPM (java app) and postgres are resource hungry and lots of CPU and RAM keep them happy it seems.

High speed storage is good too 😉

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Btw Don, just did quick comparison, in R81.20 swap is about 100 MBs and R82 180 MBs, so not a big difference. They both use 12 GB of ram.

Best,
Andy
Don_Paterson
MVP Gold
MVP Gold

Cool, so there is a difference though, and you are between the 8G minimum RAM and 16G preferred/popular minimum (lets just call it that for now 🙂 )

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Well, thats true, BUT...there is always but word somewhere : - )

The thing is, in my case, difference seems pretty small considering R82 is a major version..in your case, thats a huge discrepancy.

Best,
Andy
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

Yes, there is, but 😉

In all seriousness. The 12G maybe could account for the small difference in your lab vs the larger difference in mine.

With 8G the new RHEL swap behaviour may be more aggressive than with 12G, and the result could be the much larger swap usage.

It's all just speculation. I am no black belt in Red Hat and wouldn't claim to be,

0 Kudos
the_rock
MVP Platinum
MVP Platinum

haha : - )

Well, I get your point...Honestly, I would try with at least 12 GB and even possibly 16, if doable. I recall in the old days on windows Vista, when they used to recommend minimum amount of RAM and then you realize the next day, yes, that will NOT work lol

Maybe not the best comparison, but you get the point.

Best,
Andy
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

He said Windows Vista!! Nooooo... 😉

We're stuck with 8G for now but may get more.

Appreciate your input. 🙏

0 Kudos
the_rock
MVP Platinum
MVP Platinum

I feel like some days as soon as I hear Windows anything, Im running away haha

Best,
Andy
0 Kudos
Vincent_Bacher

Speaking of Vista. A long time ago, there was a very nasty meme, no idea if it would still be politically correct. Hiroshima 45, Chernobyl 86, Windows 98.

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
0 Kudos
the_rock
MVP Platinum
MVP Platinum

geesh, crazy...

Best,
Andy
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

R81.20

R8120-lightSwp.png

 

R82

R82-HeavyYSwp.png

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Hey Don,

I cant tell, but is this top command or something else?

Best,
Andy
0 Kudos
Vincent_Bacher

htop

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
0 Kudos
the_rock
MVP Platinum
MVP Platinum

Never knew of that command, learn something new every day...let me test it shortly.

Best,
Andy
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

As always, hit h to see the help/keystroke option in there.

But what is also cool is that you can click on the column headers (e.g. MEM%) and sort by column.

CPU% is highlighted be default.

0 Kudos
Don_Paterson
MVP Gold
MVP Gold

UPDATE:

I upgraded the R81.20 to R82 and the swap usage was higher straight away. At 320M but will monitor to see where it goes to.

0 Kudos
the_rock
MVP Platinum
MVP Platinum

I would definitely try 12 GB of ram if you can.

Best,
Andy
0 Kudos
the_rock
MVP Platinum
MVP Platinum

Just to try this in my own lab, I may change ram on R82 mgmt server, reboot and see what happens.

Best,
Andy
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events