Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

backport: clh: disable virtiofs DAX when FS cache size is 0 #3072

Closed
devimc opened this issue Nov 12, 2020 · 0 comments · Fixed by #3073
Closed

backport: clh: disable virtiofs DAX when FS cache size is 0 #3072

devimc opened this issue Nov 12, 2020 · 0 comments · Fixed by #3073
Assignees
Labels
enhancement Improvement to an existing feature needs-review Needs to be assessed by the team.

Comments

@devimc
Copy link

devimc commented Nov 12, 2020

backport kata-containers/kata-containers#1101

@devimc devimc added enhancement Improvement to an existing feature needs-review Needs to be assessed by the team. labels Nov 12, 2020
@devimc devimc self-assigned this Nov 12, 2020
devimc pushed a commit to devimc/kata-runtime that referenced this issue Nov 12, 2020
Guest consumes 120Mb more of memory when DAX is enabled and the default
FS cache size (8G) is used. Disable dax when it is not required
reducing guest's memory footprint.

Without this patch:

```
7fdea4000000-7fdee4000000 rw-s 18850589 /memfd:ch_ram (deleted)
Size:            1048576 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Rss:              187876 kB
```

With this patch:

```
7fa970000000-7fa9b0000000 rw-s 612001  /memfd:ch_ram (deleted)
Size:            1048576 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Rss:               57308 kB
Pss:               56722 kB
```

fixes kata-containers#3072

Signed-off-by: Julio Montes <[email protected]>
devimc pushed a commit to devimc/kata-runtime that referenced this issue Nov 13, 2020
Guest consumes 120Mb more of memory when DAX is enabled and the default
FS cache size (8G) is used. Disable dax when it is not required
reducing guest's memory footprint.

Without this patch:

```
7fdea4000000-7fdee4000000 rw-s 18850589 /memfd:ch_ram (deleted)
Size:            1048576 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Rss:              187876 kB
```

With this patch:

```
7fa970000000-7fa9b0000000 rw-s 612001  /memfd:ch_ram (deleted)
Size:            1048576 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Rss:               57308 kB
Pss:               56722 kB
```

fixes kata-containers#3072

Signed-off-by: Julio Montes <[email protected]>
likebreath pushed a commit to likebreath/kata-runtime that referenced this issue Apr 1, 2021
Guest consumes 120Mb more of memory when DAX is enabled and the default
FS cache size (8G) is used. Disable dax when it is not required
reducing guest's memory footprint.

Without this patch:

```
7fdea4000000-7fdee4000000 rw-s 18850589 /memfd:ch_ram (deleted)
Size:            1048576 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Rss:              187876 kB
```

With this patch:

```
7fa970000000-7fa9b0000000 rw-s 612001  /memfd:ch_ram (deleted)
Size:            1048576 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Rss:               57308 kB
Pss:               56722 kB
```

fixes kata-containers#3072

Signed-off-by: Julio Montes <[email protected]>
(cherry picked from commit 02af5c9)
Signed-off-by: Bo Chen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement to an existing feature needs-review Needs to be assessed by the team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant