login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
14
Re: [RFC][-mm] [2/2] Simple stats for memory resource controller
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Balbir Singh <balbir@...>
To: Andrew Morton <akpm@...>
Cc: Balaji Rao <balajirrao@...>, <linux-kernel@...>, <containers@...>, <menage@...>, <balbir@...>, <dhaval@...>
Subject:
Re: [RFC][-mm] [2/2] Simple stats for memory resource controller
Date: Monday, April 14, 2008 - 10:40 am
Balbir Singh wrote:
quoted text
> Balaji Rao wrote: >> This patch implements trivial statistics for the memory resource controller. >> >> Signed-off-by: Balaji Rao <balajirrao@gmail.com> >> CC: Balbir Singh <balbir@linux.vnet.ibm.com> >> CC: Dhaval Giani <dhaval@linux.vnet.ibm.com> >> >> diff --git a/mm/memcontrol.c b/mm/memcontrol.c >> index a860765..ca98b21 100644 >> --- a/mm/memcontrol.c >> +++ b/mm/memcontrol.c >> @@ -47,6 +47,8 @@ enum mem_cgroup_stat_index { >> */ >> MEM_CGROUP_STAT_CACHE, /* # of pages charged as cache */ >> MEM_CGROUP_STAT_RSS, /* # of pages charged as rss */ >> + MEM_CGROUP_STAT_PGPGIN_COUNT, /* # of pages paged in */ >> + MEM_CGROUP_STAT_PGPGOUT_COUNT, /* # of pages paged out */ >> >> MEM_CGROUP_STAT_NSTATS, >> }; >> @@ -198,6 +200,13 @@ static void mem_cgroup_charge_statistics(struct mem_cgroup *mem, int flags, >> __mem_cgroup_stat_add_safe(stat, MEM_CGROUP_STAT_CACHE, val); >> else >> __mem_cgroup_stat_add_safe(stat, MEM_CGROUP_STAT_RSS, val); >> + >> + if (charge) >> + __mem_cgroup_stat_add_safe(stat, >> + MEM_CGROUP_STAT_PGPGIN_COUNT, 1); >> + else >> + __mem_cgroup_stat_add_safe(stat, >> + MEM_CGROUP_STAT_PGPGOUT_COUNT, 1); >> } >> >> static struct mem_cgroup_per_zone * >> @@ -897,6 +906,8 @@ static const struct mem_cgroup_stat_desc { >> } mem_cgroup_stat_desc[] = { >> [MEM_CGROUP_STAT_CACHE] = { "cache", PAGE_SIZE, }, >> [MEM_CGROUP_STAT_RSS] = { "rss", PAGE_SIZE, }, >> + [MEM_CGROUP_STAT_PGPGIN_COUNT] = {"pgpgin", 1, }, >> + [MEM_CGROUP_STAT_PGPGOUT_COUNT] = {"pgpgout", 1, }, >> }; >> >> static int mem_control_stat_show(struct cgroup *cont, struct cftype *cft, >> > > Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> > > Hi, Andrew, > > Could you please include these statistics in -mm. > > Balbir > >
Andrew, This should have been addressed to you in the first place. Resending. -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][-mm] [2/2] Simple stats for memory resource controller
, Balaji Rao
, (Sat Apr 5, 2:10 pm)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, Balbir Singh
, (Mon Apr 14, 10:39 am)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, Balaji Rao
, (Mon Apr 28, 12:00 pm)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, Andrew Morton
, (Mon Apr 28, 12:40 pm)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, Balbir Singh
, (Mon Apr 28, 2:03 pm)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, KAMEZAWA Hiroyuki
, (Tue Apr 29, 1:42 am)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, Balbir Singh
, (Mon Apr 14, 10:40 am)
Re: [RFC][-mm] [2/2] Simple stats for memory resource contro...
, Balbir Singh
, (Sun Apr 6, 2:23 am)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Srivatsa Vaddagiri
[PATCH 1/2] rcfs core patch
Thomas Gleixner
Re: Regression in 2.6.27 caused by commit bfc0f59
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Florian Schmidt
blacklist kernel boot option
git
:
Scott Chacon
Git Community Book
Peter Stahlir
Git as a filesystem
Matthew L Foster
git and time
Jakub Narebski
Re: VCS comparison table
openbsd-misc
:
frantisek holop
nptd regression in 4.2
J.W. Zondag
Dell PE1950 III - Perc 6i
Alexey Suslikov
OT: OpenBSD on Asus eeePC
Richard Stallman
Real men don't attack straw men
linux-fsdevel
:
hooanon05
[PATCH 57/67] aufs sysfs interface
Michael Loftis
Re: [RFC] VM: I have a dream...
Suparna Bhattacharya
Reviewing ext3 improvement patches (delalloc, mballoc, extents)
Josef 'Jeff' Sipek
[PATCH 09/32] Unionfs: cache-coherency - dentries
Latest forum posts
How to exec user process in kernel mode.
1 hour ago
Linux kernel
How to make initramfs smaller
1 hour ago
Linux kernel
how to check if a given block device is in use?
2 hours ago
Linux kernel
[IPSEC]IPSEC_MANUAL_REQID_MAX
3 days ago
Linux kernel
help in UDP catching module..
4 days ago
Linux kernel
Is there anything like Real-time drivers?
5 days ago
Linux general
ns16550 serail console in Linux 2.6.19
5 days ago
Linux general
what class should i use to register my devices
6 days ago
Linux kernel
reset bios pasword toshiba
6 days ago
Hardware
Analysis of Process Scheduling
1 week ago
Linux kernel
Show all forums...
Recent Tags
-rc
quote
Linux
-rc4
Daniel Phillips
-rc5
filesystem
Linus Torvalds
Tux3
2.6.27
2.6.27-rc5
H. Peter Anvin
Andrew Morton
more tags
Colocation donated by:
Who's online
There are currently
5 users
and
1510 guests
online.
Online users
calcite
strcmp
Jeremy
cushioncritter
Mr_Z
Syndicate
speck-geostationary