* [PATCH 1/2] f2fstat: show cp count calling f2fs
@ 2014-02-13 6:13 Changman Lee
2014-02-13 6:13 ` [PATCH 2/2] f2fstat: add nat caches and free nids Changman Lee
0 siblings, 1 reply; 2+ messages in thread
From: Changman Lee @ 2014-02-13 6:13 UTC (permalink / raw)
To: linux-f2fs-devel
This patch is to inform how many checkpoint is called.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
---
tools/f2fstat.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tools/f2fstat.c b/tools/f2fstat.c
index 8ece660..73ad457 100644
--- a/tools/f2fstat.c
+++ b/tools/f2fstat.c
@@ -29,8 +29,8 @@ unsigned long valid_segs;
unsigned long dirty_segs;
unsigned long prefree_segs;
-unsigned long gc;
-unsigned long bg_gc;
+unsigned long gc, bg_gc;
+unsigned long cp;
unsigned long gc_data_blks;
unsigned long gc_node_blks;
@@ -99,6 +99,7 @@ void f2fstat(struct options *opt)
{ " - dents", &dirty_dents, 0 },
{ " - meta", &dirty_meta, KEY_META },
{ " - nodes", &dirty_node, KEY_NODE },
+ { "CP calls", &cp, 0 },
{ "GC calls", &gc, 0 },
{ "LFS", &lfs_blks, 0 },
{ "Memory", &memory_kb, 0 },
@@ -213,12 +214,12 @@ void parse_option(int argc, char *argv[], struct options *opt)
void print_head(void)
{
fprintf(stderr, "---utilization--- -----------main area-------- ---balancing async-- -gc- ---alloc--- -----memory-----\n");
- fprintf(stderr, "util node data free valid dirty prefree node dent meta sit gc ssr lfs total node meta\n");
+ fprintf(stderr, "util node data free valid dirty prefree node dent meta sit cp gc ssr lfs total node meta\n");
}
int main(int argc, char *argv[])
{
- char format[] = "%3ld %6ld %6ld %6ld %6ld %6ld %6ld %5ld %5ld %3ld %3ld %5ld %6ld %6ld %6ld %6ld %6ld\n";
+ char format[] = "%3ld %6ld %6ld %6ld %6ld %6ld %6ld %5ld %5ld %3ld %3ld %3ld %5ld %6ld %6ld %6ld %6ld %6ld\n";
int head_interval;
struct options opt = {
.delay = 1,
@@ -241,7 +242,7 @@ int main(int argc, char *argv[])
fprintf(stderr, format, util, used_node_blks, used_data_blks,
free_segs, valid_segs, dirty_segs, prefree_segs,
dirty_node, dirty_dents, dirty_meta, dirty_sit,
- gc, ssr_blks, lfs_blks, memory_kb, node_kb, meta_kb);
+ cp, gc, ssr_blks, lfs_blks, memory_kb, node_kb, meta_kb);
sleep(opt.delay);
}
--
1.7.10.4
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] f2fstat: add nat caches and free nids
2014-02-13 6:13 [PATCH 1/2] f2fstat: show cp count calling f2fs Changman Lee
@ 2014-02-13 6:13 ` Changman Lee
0 siblings, 0 replies; 2+ messages in thread
From: Changman Lee @ 2014-02-13 6:13 UTC (permalink / raw)
To: linux-f2fs-devel
This patch shows nat caches and free nids using f2fs.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
---
tools/f2fstat.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tools/f2fstat.c b/tools/f2fstat.c
index 73ad457..c9c1d30 100644
--- a/tools/f2fstat.c
+++ b/tools/f2fstat.c
@@ -97,6 +97,7 @@ void f2fstat(struct options *opt)
{ " - SITs", &dirty_sit, 0 },
{ " - Valid", &valid_segs, 0 },
{ " - dents", &dirty_dents, 0 },
+ { " - free_nids", &free_nids, 0 },
{ " - meta", &dirty_meta, KEY_META },
{ " - nodes", &dirty_node, KEY_NODE },
{ "CP calls", &cp, 0 },
@@ -213,13 +214,13 @@ void parse_option(int argc, char *argv[], struct options *opt)
void print_head(void)
{
- fprintf(stderr, "---utilization--- -----------main area-------- ---balancing async-- -gc- ---alloc--- -----memory-----\n");
- fprintf(stderr, "util node data free valid dirty prefree node dent meta sit cp gc ssr lfs total node meta\n");
+ fprintf(stderr, "---utilization--- -----------main area-------- ---------balancing async------- ---gc--- ---alloc--- -----memory-----\n");
+ fprintf(stderr, "util node data free valid dirty prefree node dent meta sit nat fnid cp gc ssr lfs total node meta\n");
}
int main(int argc, char *argv[])
{
- char format[] = "%3ld %6ld %6ld %6ld %6ld %6ld %6ld %5ld %5ld %3ld %3ld %3ld %5ld %6ld %6ld %6ld %6ld %6ld\n";
+ char format[] = "%3ld %6ld %6ld %6ld %6ld %6ld %6ld %5ld %5ld %3ld %5ld %5ld %3ld %3ld %3ld %6ld %6ld %6ld %6ld %6ld\n";
int head_interval;
struct options opt = {
.delay = 1,
@@ -241,7 +242,7 @@ int main(int argc, char *argv[])
fprintf(stderr, format, util, used_node_blks, used_data_blks,
free_segs, valid_segs, dirty_segs, prefree_segs,
- dirty_node, dirty_dents, dirty_meta, dirty_sit,
+ dirty_node, dirty_dents, dirty_meta, dirty_sit, nat_caches, free_nids,
cp, gc, ssr_blks, lfs_blks, memory_kb, node_kb, meta_kb);
sleep(opt.delay);
--
1.7.10.4
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-13 6:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13 6:13 [PATCH 1/2] f2fstat: show cp count calling f2fs Changman Lee
2014-02-13 6:13 ` [PATCH 2/2] f2fstat: add nat caches and free nids Changman Lee
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.