Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem_swappiness not working #8466

Closed
cdalexndr opened this issue Aug 4, 2021 · 7 comments · Fixed by #9998
Closed

mem_swappiness not working #8466

cdalexndr opened this issue Aug 4, 2021 · 7 comments · Fixed by #9998
Assignees
Labels

Comments

@cdalexndr
Copy link

Description of the issue

Docker compose file version 2.4.
Service config mem_swappiness has no effect.

Context information (for bug reports)

Output of docker-compose version

docker-compose version 1.22.0, build f46880fe
docker-py version: 3.4.1
CPython version: 3.6.6
OpenSSL version: OpenSSL 1.1.0f  25 May 2017

/!\ If docker-compose version reports v2.0...` you're using the wrong repository, please report issues on Compose-CLI

Output of docker version

Client: Docker Engine - Community
 Version:           19.03.15
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        99e3ed8919
 Built:             Sat Jan 30 03:17:11 2021
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.15
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       99e3ed8919
  Built:            Sat Jan 30 03:15:40 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker-compose config
(Make sure to add the relevant -f and other flags)

services:
   my-service;
     mem_swappiness: 75

Steps to reproduce the issue

  1. set mem_swappiness
  2. run the service
  3. docker exec -it my-service sh
  4. cat /proc/sys/vm/swappiness

Observed result

60

Expected result

75

Stacktrace / full error message

(paste here)

Additional information

Linux li1401-73.members.linode.com 4.9.0-14-amd64 #1 SMP Debian 4.9.246-2 (2020-12-17) x86_64 GNU/Linux

docker info shows: WARNING: No swap limit support

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@stale
Copy link

stale bot commented Apr 28, 2022

This issue has been automatically closed because it had not recent activity during the stale period.

@stale stale bot closed this as completed Apr 28, 2022
@LinFor
Copy link

LinFor commented Jul 25, 2022

Have the same issue. docker inspect shows "MemorySwappiness": null, while compose file contains mem_swappiness: 100 for that service

@Fs00
Copy link

Fs00 commented Nov 14, 2022

@glours @laurazard Sorry for the random tagging, but the bug is still present on Docker Compose version v2.12.1.
Can this issue be reopened and triaged? Thanks for your patience 🙏

@glours glours reopened this Nov 14, 2022
@glours glours self-assigned this Nov 14, 2022
@stale
Copy link

stale bot commented Nov 14, 2022

This issue has been automatically marked as not stale anymore due to the recent activity.

@teresanovielloatinstana

Hello team, the bug is still present on Docker Compose version v2.20.3.
Can this issue be reopened and triaged? Thanks for your patience 🙏

@mdeeter
Copy link

mdeeter commented Oct 25, 2024

I'm seeing this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants