Re: [Devel] Re: [RFC][v2][patch 0/12][CFQ-cgroup]Yet another I/O bandwidth controlling subsystem for CGroups based on CFQ

2008-04-25 Thread Florian Westphal
Ryo Tsuruta <[EMAIL PROTECTED]> wrote:
[..]
> I'd like to see other benchmark results if anyone has.

Here are a few results. IO is issued in 4k chunks,
using O_DIRECT. Each process issues both reads
and writes. There are 60 such processes in each cgroup (except
where noted). Numbers given show the total count of io requests
(read and write) completed in 60 seconds. All processes use
the same partition, fs is ext3.

Vasily's scheduler:
--
| cgroup | s0 | s1 |total |
|priority|  4 |  4 |I/Os  |
--
|| 24953  | 24062  | 49015|
|| 29558(60 processes)| 14639 (30 proc)| 44197|
---
|priority|0   |  4 |  |
|| 24221  | 24047  | 48268|
|priority|1   |  4 |  |
|| 24897  | 24509  | 49406|
|priority|2   |  4 |  |
|| 23295  | 23622  | 46917|
|priority|0   |  7 |  |
|| 22301  | 23373  | 45674|
---

Satoshi's scheduler:
---
| cgroup | s0 | s1 |total |
|priority|  3 |  3 |I/Os  |
|| 25175  | 26463  | 51638|
|| 26944 (60) | 26698 (30) | 53642|
---
|priority|   0|  3 |  |
|| 60821  | 19846  | 80667|
|priority|   1|  3 |  |
|| 50608  | 25994  | 76602|
|priority|   2|  3 |  |
|| 32132  | 26641  | 58773|
|priority|   7|  0 |  |
|| 91387  | 12547  |103934|
--

So in short, i can't see any effect when i use Vasily's
i/o scheduler. Setting
echo 10 > /sys/block/hda/queue/iosched/cgrp_slice
did at least show different results in the 'prio 7 vs. prio 0 case'
(~29000 (prio 7) vs. 2 (prio 0)).

What i found surprising is that Satoshis scheduler has
about twice of the io count...

Thanks, Florian

___
Devel mailing list
Devel@openvz.org
https://openvz.org/mailman/listinfo/devel


[Devel] [PATCH] Add try_to_remove_exclusive_swap_page stub for CONFIG_SWAP=N

2008-04-08 Thread Florian Westphal
mm/memory.c: In function 'do_swap_page':
mm/memory.c:2194: error: implicit declaration of function 
'try_to_remove_exclusive_swap_page'
---

 patch applies on top of
 c77d67e020b65c69f9133850e298b7c3d02e
 'UBC: fix preempt_enable() placement in dcache accounting' in 
linux-2.6.24-openvz.

diff --git a/include/linux/swap.h b/include/linux/swap.h
index 03c8590..4c19128 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -371,6 +371,11 @@ static inline int remove_exclusive_swap_page(struct page 
*p)
return 0;
 }
 
+static inline int try_to_remove_exclusive_swap_page(struct page *page)
+{
+   return 0;
+}
+
 static inline swp_entry_t get_swap_page(struct user_beancounter *ub)
 {
swp_entry_t entry;
-- 
1.5.3.7

___
Devel mailing list
Devel@openvz.org
https://openvz.org/mailman/listinfo/devel