From: Madan <madanvs@linux.vnet.ibm.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] readahead02: change the test pass to 2M
Date: Fri, 09 May 2014 11:15:49 +0530 [thread overview]
Message-ID: <536C6B8D.9070804@linux.vnet.ibm.com> (raw)
Max readahead size has been limited since commit:
commit 6d2be915e589b58cb11418cbe1f22ff90732b6ac
Author: Raghavendra K T<raghavendra.kt@linux.vnet.ibm.com>
Date: Thu Apr 3 14:48:23 2014 -0700
mm/readahead.c: fix readahead failure for memoryless NUMA nodes
and limit readahead pages
Updating the change in the readahead behaviour of max 2M cache.
http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=c7252018cef0da5db35cd03aa7b6c44ab597a0b7
Signed-off-by:Hoisaleshwara Madan V S <hoisalvs@in.ibm.com>
Patch :
diff --git a/testcases/kernel/syscalls/readahead/readahead02.c b/testcases/kernel/syscalls/readahe
index 66158f0..dc6a191 100644
--- a/testcases/kernel/syscalls/readahead/readahead02.c
+++ b/testcases/kernel/syscalls/readahead/readahead02.c
@@ -306,13 +306,14 @@ static void test_readahead(void)
tst_resm(TINFO, "cache can hold at least: %ld kB", cached_max);
tst_resm(TINFO, "read_testfile(0) used cache: %ld kB", cached);
tst_resm(TINFO, "read_testfile(1) used cache: %ld kB", cached_ra);
-
- if (cached_max * 1024 >= testfile_size) {
+
+ /* readahead will cache max of 2 M */
+ if (cached_max * 1024 >= 2 * 1024) {
/*
* if cache can hold ~testfile_size then cache increase
* for readahead should be at least testfile_size/2
*/
- if (cached_ra * 1024 > testfile_size / 2)
+ if (cached_ra * 1024 > 2 * 1024)
tst_resm(TPASS, "using cache as expected");
else
tst_resm(TWARN, "using less cache than expected");
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2014-05-09 5:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 5:45 Madan [this message]
2014-05-09 6:43 ` [LTP] readahead02: change the test pass to 2M Jan Stancek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=536C6B8D.9070804@linux.vnet.ibm.com \
--to=madanvs@linux.vnet.ibm.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.