Hi, Cyril and all can anyone comment for the patch? Thanks, Zhouping
----- Original Message ----- > From: "Zhouping Liu" <[email protected]> > To: "Cyril Hrubis" <[email protected]> > Cc: [email protected], [email protected] > Sent: Saturday, September 10, 2011 1:14:39 AM > Subject: [LTP][PATCH v5 1/2] mem/tunable: new testcase about overcommiting > memory > > Hi, Cyril > v4 -> v5: updated message. please comment it. > > There are several vm tunable files under /proc/sys/vm, I will compose > some cases for testing the basic functions of them. This patch is > adding > the read/write/check functions to mem lib so that I can include them > in > my testcases. > > set_sys_tune(): set a long long integer value to a vm tunable file. > get_sys_tune(): get a long long integer value from a vm tunable > file. > check_sys_tune(): check to confirm the value in tunable file meets > our > expectation. > read_meminfo(): read the special value from /proc/meminfo. > > Since most of the values in vm tunable files contain only single > integer, the functions I added only read/write long long values for > now. > For those files not storing single interger (e.g. > lowmem_reserve_ratio), > these functions will not be used in the case. > > Signed-off-by: Zhouping Liu <[email protected]> > --- > testcases/kernel/mem/include/mem.h | 7 +++ > testcases/kernel/mem/lib/mem.c | 81 > +++++++++++++++++++++++++++++++++++- > 2 files changed, 87 insertions(+), 1 deletions(-) > > -- > Thanks, > Zhouping Liu > ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
