* questions about hugetlb usage
@ 2015-04-30 7:11 Ma Shimiao
[not found] ` <5541D5A6.7010804-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Ma Shimiao @ 2015-04-30 7:11 UTC (permalink / raw)
To: cgroups-u79uwXL29TY76Z2rM5mHXA
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.
--
Ma Shimiao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <5541D5A6.7010804-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>]
* Re: questions about hugetlb usage [not found] ` <5541D5A6.7010804-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> @ 2015-04-30 8:11 ` Zefan Li [not found] ` <5541E3C1.8020908-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Zefan Li @ 2015-04-30 8:11 UTC (permalink / raw) To: Ma Shimiao; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <5541E3C1.8020908-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>]
* Re: questions about hugetlb usage [not found] ` <5541E3C1.8020908-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> @ 2015-04-30 8:19 ` Ma Shimiao 0 siblings, 0 replies; 3+ messages in thread From: Ma Shimiao @ 2015-04-30 8:19 UTC (permalink / raw) To: Zefan Li; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA On 04/30/2015 04:11 PM, Zefan Li wrote: > 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. Ah... Tested. Really it is. Thanks. > > . > -- Ma Shimiao Development Dept.I Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-30 8:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[not found] ` <5541E3C1.8020908-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-04-30 8:19 ` Ma Shimiao
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.