swapon03 cleanup
PATCH 1/1 swapon03 cleanup
This cleans up existing swap files in swapon03 test in failing test case. Otherwise, deleted swap files would still exist in /proc/swaps.
Murlin Ray Wenzel
Sr. Engineer
[email protected]
Office: 801 861 5748
Cell: 801 380 4520
Novell
Making IT Work As One.
www.novell.com
testcases/kernel/syscalls/swapon/swapon03.c +2 -0
@@ -291,6 +291,8 @@/* turn on the swap file */ if ((res =syscall (__NR_swapon, filename,0 )) !=0 ) { +/* Must clean up existing swap files since tst_brkm doesn't return*/ +clean_swap ();tst_brkm (TFAIL |TERRNO , cleanup,"Failed swapon for file %s" , filename);/* must cleanup already swapon files */
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 3 lines · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case. Otherwise, deleted swap files would still exist in
/proc/swaps.Signed-off-by Murlin Ray Wenzel [email protected]
Why not implement this as part of cleanup?
Thanks,
-Garrett
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 9 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 2 lines
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-Garrett
I can look at doing that. I just grabbed the closest place that worked for me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
Murlin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 7 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 4 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-GarrettI can look at doing that. I just grabbed the closest place that worked for me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
What kernel version are you working with?
-Garrett
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:25 PM, in message
<[email protected]>, Garrett Cooper
Quoted 14 lines · <[email protected]> wrote:
Quoted 13 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 9 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 2 lines
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-Garrett
Quoted 6 lines
Quoted 1 line
I can look at doing that. I just grabbed the closest place that worked for
me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
What kernel version are you working with?
-Garrett
I'm testing on 2.6.32.7, but I've been told that the same problem doesn't happen on 2.6.33 and it shouldn't happen on some as yet unknown previous versions.
Murlin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 17 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:25 PM, in message
<[email protected]>, Garrett Cooper
Quoted 14 lines · <[email protected]> wrote:
Quoted 13 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 9 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 2 lines
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-Garrett
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
I can look at doing that. I just grabbed the closest place that worked for
me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
What kernel version are you working with?
-GarrettI'm testing on 2.6.32.7, but I've been told that the same problem doesn't happen on 2.6.33 and it shouldn't happen on some as yet unknown previous versions.
If they changed the maximum number of swap files, then this would
be the cause for the problem as it's set to 30 since 2.6.18. See include/swaponoff.h .
HTH,
-Garrett
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 03:22 PM, in message
<[email protected]>, Garrett Cooper
Quoted 26 lines · <[email protected]> wrote:
Quoted 17 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:25 PM, in message
<[email protected]>, Garrett Cooper
Quoted 14 lines · <[email protected]> wrote:
Quoted 13 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 9 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 2 lines
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-GarrettQuoted 8 lines
Quoted 6 lines
Quoted 1 line
I can look at doing that. I just grabbed the closest place that worked for
me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
What kernel version are you working with?
-GarrettI'm testing on 2.6.32.7, but I've been told that the same problem doesn't
Quoted 8 lines
happen on 2.6.33 and it shouldn't happen on some as yet unknown previous versions.
If they changed the maximum number of swap files, then this would
be the cause for the problem as it's set to 30 since 2.6.18. Seeinclude/swaponoff.h.
HTH,
-Garrett
The problem is MAX_SWAPFILES reports 30 but you only get 29.
Murlin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 32 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 03:22 PM, in message
<[email protected]>, Garrett Cooper
Quoted 29 lines · <[email protected]> wrote:
Quoted 17 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:25 PM, in message
<[email protected]>, Garrett Cooper
Quoted 14 lines · <[email protected]> wrote:
Quoted 13 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 9 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 2 lines
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-GarrettQuoted 8 lines
Quoted 6 lines
Quoted 1 line
I can look at doing that. I just grabbed the closest place that worked for
me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
What kernel version are you working with?
-GarrettI'm testing on 2.6.32.7, but I've been told that the same problem doesn't
happen on 2.6.33 and it shouldn't happen on some as yet unknown previous versions.
Quoted 7 lines
Quoted 5 lines
If they changed the maximum number of swap files, then this would be the cause for the problem as it's set to 30 since 2.6.18. See
include/swaponoff.h.
HTH,
-GarrettThe problem is
MAX_SWAPFILESreports 30 but you only get 29.
Is swap mounted :)?
-Garrett
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 03:33 PM, in message
<[email protected]>, Garrett Cooper
Quoted 39 lines · <[email protected]> wrote:
Quoted 38 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 03:22 PM, in message
<[email protected]>, Garrett Cooper
Quoted 34 lines · <[email protected]> wrote:
Quoted 17 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:25 PM, in message
<[email protected]>, Garrett Cooper
Quoted 14 lines · <[email protected]> wrote:
Quoted 13 lines · Murlin Wenzel
Quoted 1 line
Quoted 1 line
Quoted 1 line
On 2/24/2010 at 02:16 PM, in message
<[email protected]>, Garrett Cooper
Quoted 9 lines · <[email protected]> wrote:
Quoted 1 line · Murlin Wenzel
This cleans up existing swap files in swapon03 test in failing test case.
Otherwise, deleted swap files would still exist in
/proc/swaps.Quoted 2 lines
Signed-off-by Murlin Ray Wenzel [email protected]Why not implement this as part of cleanup?
Thanks,
-GarrettQuoted 8 lines
Quoted 6 lines
Quoted 1 line
I can look at doing that. I just grabbed the closest place that worked for
me. BTW I'm still looking at a possible kernel bug where you can't allocate the maximum number of swap files.
What kernel version are you working with?
-GarrettI'm testing on 2.6.32.7, but I've been told that the same problem doesn't
happen on 2.6.33 and it shouldn't happen on some as yet unknown previous versions.
If they changed the maximum number of swap files, then this would
be the cause for the problem as it's set to 30 since 2.6.18. Seeinclude/swaponoff.h.
HTH,
-Garrett
Quoted 4 lines
Quoted 1 line
The problem is
MAX_SWAPFILESreports 30 but you only get 29.Is swap mounted :)?
-Garrett
When I said 29 I was taking into account mounted swap partition which would make 30.
Murlin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list