MSW and CSW meanings
Please, what do MSW and CSW mean on /proc/xenomai/stats?
Sorry if it is documented somewhere but I didn't find it on docs...
Rodrigo.
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com
Quoted 2 lines · Rodrigo Rosenfeld Rosas
Please, what do MSW and CSW mean on
/proc/xenomai/stats?
MSW = Mode switches: primary->secondary/secondary->primary (actually, I'm going to only leave the first one)
CSW = Context switches (operated by Xenomai for real-time threads, kernel + user-space).
Quoted 13 lines
Sorry if it is documented somewhere but I didn't find it on docs...
Rodrigo.
_______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Rodrigo Rosenfeld Rosas
Hi Philippe,
How about this patch? Or something like, if you prefer...
I really think that we should keep the /proc output as terse as possible, but properly documenting the corresponding information in the same move (which is not the case yet), so that we don't embed excessive "dead" data into the kernel, but rather have a some accurate documentation about it.
Quoted 57 lines
Best Regards,
Rodrigo.
____________________________________________________________
Em Segunda 17 Abril 2006 15:10, Philippe Gerum escreveu:Quoted 49 lines
Quoted 1 line · Rodrigo Rosenfeld Rosas
Please, what do MSW and CSW mean on
/proc/xenomai/stats?MSW = Mode switches: primary->secondary/secondary->primary (actually, I'm going to only leave the first one)
CSW = Context switches (operated by Xenomai for real-time threads, kernel + user-space).
Quoted 38 lines
Sorry if it is documented somewhere but I didn't find it on docs...
Rodrigo.
------------------------------------------------------------------------
Index:
ksrc/nucleus/module.c
===================================================================nucleus/module.c +9
-4@@ -252,8 +252,8 @@pid_t pid;xnflags_t status;const char *name; -unsigned long ssw; -unsigned long csw; +unsigned long ssw;/* mode switch: primary->secondary/secondary->primary */ +unsigned long csw;/* context switches */ unsigned long pf; } stat_info[1 ]; };@@ -293,8 +293,13 @@static int stat_seq_show (struct seq_file *seq,void *v) {if (v ==SEQ_START_TOKEN ) -seq_printf (seq,"%-3s %-6s %-10s %-10s %-4s %-8s %s\n" , -"CPU" ,"PID" ,"MSW" ,"CSW" ,"PF" ,"STAT" ,"NAME" ); + { +seq_printf (seq,"MSW - Mode Switches (primary->secondary/secondary->primary)\n" +"CSW - Context switches (operated by Xenomai for real-time threads, kernel + user-space)\n" +"PF - Page faults\n" ); +seq_printf (seq,"%-3s %-6s %-10s %-10s %-4s %-8s %s\n" , +"CPU" ,"PID" ,"MSW" ,"CSW" ,"PF" ,"STAT" ,"NAME" ); + }else {struct stat_seq_info *p = (struct stat_seq_info *)v;
Signature · 1 line
Philippe.