# SLES12SP4: Swapping Behavior

**URL:** https://forums.suse.com/t/sles12sp4-swapping-behavior/35030
**Category:** SLES Configure-Administer
**Created:** [May 25, 2020, 12:42pm UTC](https://forums.suse.com/t/sles12sp4-swapping-behavior/35030 "2020-05-25T12:42:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![christianmolecki](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@christianmolecki](https://forums.suse.com/u/christianmolecki)
#### Post date: [May 25, 2020, 12:42pm UTC](https://forums.suse.com/t/sles12sp4-swapping-behavior/35030/1 "2020-05-25T12:42:16Z")

</div>

Hello,  
we have some strange swapping behavor.

Using SLES12SP3 we had no major swapping with vm.swappiness = 0

After Upgrading to SLES12SP4 we had some crashes because the operation system could’nt swap. We figure out that vm.swappiness = 0 disables swapping now. So we modify the parameter to vm.swappiness = 1, to enable swapping at all.  
With SLES12SP4 and vm.swappiness = 1 we observe a more progressive swapping. The servers swaps out small amounts of memory, even if there is enough memory available. Especially updating with zypper creates a swap with few KB.  
 ![](https://forums.suse.com/uploads/editor/fi/3azq5n6hxrim.png)

Do you have informations about that behaviour?

BR  
Christian

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [May 25, 2020, 12:52pm UTC](https://forums.suse.com/t/sles12sp4-swapping-behavior/35030/2 "2020-05-25T12:52:05Z")

</div>

Hi  
Did you also set the vm.vfs\_cache\_pressure? I run;

```auto
vm.swappiness=1
vm.vfs_cache_pressure=125

```

[https://www.kernel.org/doc/Documentation/sysctl/vm.txt](https://www.kernel.org/doc/Documentation/sysctl/vm.txt)

---

<div class="post-metadata">

### Author: ![christianmolecki](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@christianmolecki](https://forums.suse.com/u/christianmolecki)
#### Post date: [June 3, 2020, 6:49am UTC](https://forums.suse.com/t/sles12sp4-swapping-behavior/35030/3 "2020-06-03T06:49:27Z")

</div>

Hi,  
thanks for your advice.  
I applied your settings on some servers.

---

<div class="post-metadata">

### Author: ![christianmolecki](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@christianmolecki](https://forums.suse.com/u/christianmolecki)
#### Post date: [June 15, 2020, 12:08pm UTC](https://forums.suse.com/t/sles12sp4-swapping-behavior/35030/4 "2020-06-15T12:08:59Z")

</div>

Hello,  
after two weeks of testing, the parameter `vm.vfs_cache_pressure = 125` has no effect.  
System won’t reintegrate the swap. Between the screenshot are 30 minutes.

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [June 15, 2020, 12:38pm UTC](https://forums.suse.com/t/sles12sp4-swapping-behavior/35030/5 "2020-06-15T12:38:12Z")

</div>

Hi  
So your wanting it to use it more? If so reduce the pressure number. By default it’s 60.
