# How to enable cgroups swap space controller

**URL:** <https://forums.suse.com/t/how-to-enable-cgroups-swap-space-controller/23728>\
**Category:** SLES Configure-Administer\
**Created:** [March 14, 2013, 4:20pm UTC](https://forums.suse.com/t/how-to-enable-cgroups-swap-space-controller/23728 "2013-03-14T16:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwiklik](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@cwiklik](https://forums.suse.com/u/cwiklik)\
**Post date:** [March 14, 2013, 4:20pm UTC](https://forums.suse.com/t/how-to-enable-cgroups-swap-space-controller/23728/1 "2013-03-14T16:20:32Z")

</div>

Is there a way to enable cgroups swap space controller on  
SUSE Linux Enterprise Server 11 Service Pack 2? If this  
is possible could someone provide steps needed to do this?

I dug up Release Notes which state:

“Right now only the memory usage with respect to a cgroup can be controlled.  
The swap space used by the tasks within a cgroup cannot be controlled.”

The above is followed by:  
“…This feature can be exploited by passing the kernel boot parameter “swapaccount=1” and can be  
disabled by passing “swapaccount=0”. If the feature is enabled, an interface by name “memory.memsw.limit\_in\_bytes”  
will be present under the memory controller…”

I tried setting swapaccount=1 in sysctl but still dont see memory.memsw.limit\_in\_bytes getting created in my cgroups.

Thanks, Jerry C

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [March 21, 2013, 2:30pm UTC](https://forums.suse.com/t/how-to-enable-cgroups-swap-space-controller/23728/2 "2013-03-21T14:30:22Z")

</div>

cwiklik,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
