Score:1

Why is systemctl showing memory current as [Not Set]?

id flag

I have been trying to limit the memory usage of firefox, by following this tutorial: https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02

In there, we limit the memory usage of Firefox by using systemd

systemd-run --unit=my-firefox --user --scope -p MemoryHigh=6G -p MemoryMax=7G -p MemorySwapMax=0 firefox

And then check memory usage by systemctl

systemctl --user show my-firefox.scope | grep Memory

Unfortunately, in my case, I get not set in MemoryCurrent, something like this output below:

$ systemctl --user show limited-firefox.scope | grep Memory
MemoryCurrent=[not set]
EffectiveMemoryNodes=
AllowedMemoryNodes=
MemoryAccounting=yes
DefaultMemoryLow=0
DefaultMemoryMin=0
MemoryMin=0
MemoryLow=0
MemoryHigh=2147483648
MemoryMax=3221225472
MemorySwapMax=0
MemoryLimit=infinity

Is there something I am missing, or wrong with my system?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.