From: Zefan Li <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: Ma Shimiao <mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: questions about hugetlb usage
Date: Thu, 30 Apr 2015 16:11:45 +0800 [thread overview]
Message-ID: <5541E3C1.8020908@huawei.com> (raw)
In-Reply-To: <5541D5A6.7010804-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
On 2015/4/30 15:11, Ma Shimiao wrote:
> Hello,
>
> I'm new to cgroups.
> I'm not sure whether this is the right place to ask questions about cgroups.
> If not, I will be very sorry for disturbing.
>
> Recently, I'm researching the usage of hugetlb.
> I have got a problem, but don't know why and how to solve it.
>
> # cat /proc/meminfo |grep -i huge
> AnonHugePages: 1894400 kB
> HugePages_Total: 192
> HugePages_Free: 188
> HugePages_Rsvd: 0
> HugePages_Surp: 0
> Hugepagesize: 2048 kB
> # cat /sys/fs/cgroup/hugetlb/hugetlb.2MB.limit_in_bytes
> 9223372036854771712
> # cat /sys/fs/cgroup/hugetlb/hugetlb.2MB.max_usage_in_bytes
> 8388608
> # cat /sys/fs/cgroup/hugetlb/hugetlb.2MB.usage_in_bytes
> 8388608
> # echo 10240000000000 > /sys/fs/cgroup/hugetlb/hugetlb.2MB.limit_in_bytes
> -bash: echo: write error: Invalid argument
>
> It seems I cant write values to hugetlb.2MB.limit_in_bytes
> Could anyone give me some advice?
> Thanks very much.
>
Looks like you were trying to write to the file in root cgroup, which
is forbidden.
next prev parent reply other threads:[~2015-04-30 8:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 7:11 questions about hugetlb usage Ma Shimiao
[not found] ` <5541D5A6.7010804-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-04-30 8:11 ` Zefan Li [this message]
[not found] ` <5541E3C1.8020908-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-04-30 8:19 ` Ma Shimiao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5541E3C1.8020908@huawei.com \
--to=lizefan-hv44wf8li93qt0dzr+alfa@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.