The page add a new condition to let gfp_to_alloc_flags return
alloc_flags with ALLOC_HARDER if the order is not 0 and migratetype is
MIGRATE_UNMOVABLE.
Then alloc umovable page that order is not 0 will try to use HighAtomic.
Signed-off-by: Hui Zhu
---
mm/page_alloc.c | 6 --
1 file changed
pageblocks.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b54e94a..9322458 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2101,7 +2101,7 @@ static void reserve_high
local faults 0 0
NUMA hint local percent100 100
NUMA pages migrated 0 0
AutoNUMA cost 0% 0%
Hui Zhu (2):
Try to use HighAtomic if try to alloc umovable page that order is not 0
Change limit
pageblocks.
Signed-off-by: Hui Zhu
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b54e94a..9322458 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2101,7 +2101,7 @@ static void reserve_highatomic_pageblock(struct p
local faults 0 0
NUMA hint local percent100 100
NUMA pages migrated 0 0
AutoNUMA cost 0% 0%
Hui Zhu (2):
Try to use HighAtomic if try to alloc umovable page that order is not 0
Change limit
2017-08-16 12:51 GMT+08:00 Minchan Kim <minc...@kernel.org>:
> On Wed, Aug 16, 2017 at 10:49:14AM +0800, Hui Zhu wrote:
>> Hi Minchan,
>>
>> 2017-08-16 10:13 GMT+08:00 Minchan Kim <minc...@kernel.org>:
>> > Hi Hui,
>> >
>> > On Mon,
2017-08-16 12:51 GMT+08:00 Minchan Kim :
> On Wed, Aug 16, 2017 at 10:49:14AM +0800, Hui Zhu wrote:
>> Hi Minchan,
>>
>> 2017-08-16 10:13 GMT+08:00 Minchan Kim :
>> > Hi Hui,
>> >
>> > On Mon, Aug 14, 2017 at 05:56:30PM +0800, Hui Zhu w
-but-not-return-ebusy-if-zspage-is-not-inuse-fix.patch
[2] zsmalloc-zs_page_migrate-schedule-free_work-if-zspage-is-ZS_EMPTY.patch
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/zsmalloc.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index fb99953..8
-but-not-return-ebusy-if-zspage-is-not-inuse-fix.patch
[2] zsmalloc-zs_page_migrate-schedule-free_work-if-zspage-is-ZS_EMPTY.patch
Signed-off-by: Hui Zhu
---
mm/zsmalloc.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index fb99953..8560c93 100644
--- a/mm
done the job without "schedule_work(>free_work);"
Make this patch let zs_page_migrate wake up free_work if need.
[1]
zsmalloc-zs_page_migrate-skip-unnecessary-loops-but-not-return-ebusy-if-zspage-is-not-inuse-fix.patch
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/zsmalloc
done the job without "schedule_work(>free_work);"
Make this patch let zs_page_migrate wake up free_work if need.
[1]
zsmalloc-zs_page_migrate-skip-unnecessary-loops-but-not-return-ebusy-if-zspage-is-not-inuse-fix.patch
Signed-off-by: Hui Zhu
---
mm/zsmalloc.c | 11 +--
1 fil
Hi Minchan,
2017-08-16 10:13 GMT+08:00 Minchan Kim <minc...@kernel.org>:
> Hi Hui,
>
> On Mon, Aug 14, 2017 at 05:56:30PM +0800, Hui Zhu wrote:
>> After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary
>
> This patch is not merged yet so the hash
Hi Minchan,
2017-08-16 10:13 GMT+08:00 Minchan Kim :
> Hi Hui,
>
> On Mon, Aug 14, 2017 at 05:56:30PM +0800, Hui Zhu wrote:
>> After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary
>
> This patch is not merged yet so the hash is invalid.
> That means
this patch let zs_page_migrate wake up free_work if need.
Fixes: e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary loops but not
return -EBUSY if zspage is not inuse")
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/zsmalloc.c | 13 +++--
1 file changed, 11 i
this patch let zs_page_migrate wake up free_work if need.
Fixes: e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary loops but not
return -EBUSY if zspage is not inuse")
Signed-off-by: Hui Zhu
---
mm/zsmalloc.c | 13 +++--
1 file changed, 11 insertions(+), 2 deleti
2017-08-14 16:31 GMT+08:00 Minchan Kim <minc...@kernel.org>:
> Hi Hui,
>
> On Mon, Aug 14, 2017 at 02:34:46PM +0800, Hui Zhu wrote:
>> After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary
>> loops but not return -EBUSY if zspage is not inuse
2017-08-14 16:31 GMT+08:00 Minchan Kim :
> Hi Hui,
>
> On Mon, Aug 14, 2017 at 02:34:46PM +0800, Hui Zhu wrote:
>> After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary
>> loops but not return -EBUSY if zspage is not inuse") zs_page_migrate
&g
her zspage wake up free_work.
Make this patch let zs_page_migrate wake up free_work if need.
Fixes: e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary loops but not
return -EBUSY if zspage is not inuse")
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/zsmalloc.c | 10 +++
her zspage wake up free_work.
Make this patch let zs_page_migrate wake up free_work if need.
Fixes: e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary loops but not
return -EBUSY if zspage is not inuse")
Signed-off-by: Hui Zhu
---
mm/zsmalloc.c | 10 --
1 file changed
/21/10
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/zsmalloc.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index d41edd2..c2c7ba9 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1997,8 +1997,11 @@ int zs_page_migrate(
/21/10
Signed-off-by: Hui Zhu
---
mm/zsmalloc.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index d41edd2..c2c7ba9 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1997,8 +1997,11 @@ int zs_page_migrate(struct address_space *mapping
2017-07-20 16:47 GMT+08:00 Minchan Kim <minc...@kernel.org>:
> Hi Hui,
>
> On Thu, Jul 20, 2017 at 02:39:17PM +0800, Hui Zhu wrote:
>> Hi Minchan,
>>
>> I am sorry for answer late.
>> I spent some time on ubuntu 16.04 with mmtests in an old laptop.
>&
2017-07-20 16:47 GMT+08:00 Minchan Kim :
> Hi Hui,
>
> On Thu, Jul 20, 2017 at 02:39:17PM +0800, Hui Zhu wrote:
>> Hi Minchan,
>>
>> I am sorry for answer late.
>> I spent some time on ubuntu 16.04 with mmtests in an old laptop.
>>
>> 2017-07-17
Hi Minchan,
I am sorry for answer late.
I spent some time on ubuntu 16.04 with mmtests in an old laptop.
2017-07-17 13:39 GMT+08:00 Minchan Kim <minc...@kernel.org>:
> Hello Hui,
>
> On Fri, Jul 14, 2017 at 03:51:07PM +0800, Hui Zhu wrote:
>> Got some -EBUSY from zs_page_m
Hi Minchan,
I am sorry for answer late.
I spent some time on ubuntu 16.04 with mmtests in an old laptop.
2017-07-17 13:39 GMT+08:00 Minchan Kim :
> Hello Hui,
>
> On Fri, Jul 14, 2017 at 03:51:07PM +0800, Hui Zhu wrote:
>> Got some -EBUSY from zs_page_migrate that will make mi
if migrate_mode is not
MIGRATE_ASYNC.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
mm/zsmalloc.c | 66 +--
1 file changed, 37 insertions(+), 29 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index d41edd2..c298e5c 100644
--
if migrate_mode is not
MIGRATE_ASYNC.
Signed-off-by: Hui Zhu
---
mm/zsmalloc.c | 66 +--
1 file changed, 37 insertions(+), 29 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index d41edd2..c298e5c 100644
--- a/mm/zsmalloc.c
+++ b/mm
1126484928 bytes / 6555923 usecs = 167799 KB/s
1126484928 bytes / 6642291 usecs = 165617 KB/s
Hui Zhu (2):
SWAP: add interface to let disk close swap cache
ZRAM: add sysfs switch swap_cache_not_keep
1126484928 bytes / 6555923 usecs = 167799 KB/s
1126484928 bytes / 6642291 usecs = 165617 KB/s
Hui Zhu (2):
SWAP: add interface to let disk close swap cache
ZRAM: add sysfs switch swap_cache_not_keep
This patch add a interface to gendisk that SWAP device can use it to
control the swap cache rule.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
include/linux/genhd.h | 3 +++
include/linux/swap.h | 8 ++
mm/Kconfig| 10 +++
mm/memory.c | 2 +-
mm/swap
This patch add a interface to gendisk that SWAP device can use it to
control the swap cache rule.
Signed-off-by: Hui Zhu
---
include/linux/genhd.h | 3 +++
include/linux/swap.h | 8 ++
mm/Kconfig| 10 +++
mm/memory.c | 2 +-
mm/swapfile.c | 74
This patch add a sysfs interface swap_cache_not_keep to control the swap
cache rule for a ZRAM disk.
Swap will not keep the swap cache anytime if it set to 1.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
drivers/block/zram/zram_drv.c | 34 ++
1 file chang
This patch add a sysfs interface swap_cache_not_keep to control the swap
cache rule for a ZRAM disk.
Swap will not keep the swap cache anytime if it set to 1.
Signed-off-by: Hui Zhu
---
drivers/block/zram/zram_drv.c | 34 ++
1 file changed, 34 insertions(+)
diff
Thanks!
Regards,
Wang Sheng-Hui
-- Original --
From: "Bjorn Helgaas";<helg...@kernel.org>;
Date: Sat, Nov 12, 2016 04:51 AM
To: "Wang Sheng-Hui"<shh...@foxmail.com>;
Cc: "yu.zhao"<yu.z...@intel.com>; "
Thanks!
Regards,
Wang Sheng-Hui
-- Original --
From: "Bjorn Helgaas";;
Date: Sat, Nov 12, 2016 04:51 AM
To: "Wang Sheng-Hui";
Cc: "yu.zhao"; "jbarnes";
"alex.williamson"; "bhelgaas";
"linux-p
This is a cleanup that moves PCI configuration space size
macros (PCI_CFG_SPACE_SIZE and PCI_CFG_SPACE_EXP_SIZE) from
drivers/pci/pci.h to include/uapi/linux/pci_regs.h
So that the macros can be used by more drivers and eliminate
potential duplicate definition.
Signed-off-by: Wang Sheng-Hui <
This is a cleanup that moves PCI configuration space size
macros (PCI_CFG_SPACE_SIZE and PCI_CFG_SPACE_EXP_SIZE) from
drivers/pci/pci.h to include/uapi/linux/pci_regs.h
So that the macros can be used by more drivers and eliminate
potential duplicate definition.
Signed-off-by: Wang Sheng-Hui
On Mon, Sep 5, 2016 at 1:51 PM, Minchan Kim <minc...@kernel.org> wrote:
> On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote:
>> On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim <minc...@kernel.org> wrote:
>> > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wro
On Mon, Sep 5, 2016 at 1:51 PM, Minchan Kim wrote:
> On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote:
>> On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote:
>> > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote:
>> >> On Thu, Aug 25, 2016
On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim <minc...@kernel.org> wrote:
> On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote:
>> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky
>> <sergey.senozhatsky.w...@gmail.com> wrote:
>> > Hello,
>>
On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote:
> On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote:
>> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky
>> wrote:
>> > Hello,
>> >
>> > On (08/22/16 16:25), Hui Zhu wrote:
>> >
On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky
<sergey.senozhatsky.w...@gmail.com> wrote:
> Hello,
>
> On (08/22/16 16:25), Hui Zhu wrote:
>>
>> Current ZRAM just can store all pages even if the compression rate
>> of a page is really low. So the compression
On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky
wrote:
> Hello,
>
> On (08/22/16 16:25), Hui Zhu wrote:
>>
>> Current ZRAM just can store all pages even if the compression rate
>> of a page is really low. So the compression rate of ZRAM is out of
>> control
Hi Minchan,
On Wed, Aug 24, 2016 at 9:04 AM, Minchan Kim <minc...@kernel.org> wrote:
> Hi Hui,
>
> On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote:
>> Current ZRAM just can store all pages even if the compression rate
>> of a page is really low. So the comp
Hi Minchan,
On Wed, Aug 24, 2016 at 9:04 AM, Minchan Kim wrote:
> Hi Hui,
>
> On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote:
>> Current ZRAM just can store all pages even if the compression rate
>> of a page is really low. So the compression rate of ZRAM is o
the page that the
compressed size is smaller than a value.
With these patches, I set the value to 2048 and did the same test with
before. The compression rate is about 20%. The times of lowmemorykiller
also decreased.
Hui Zhu (4):
vmscan.c: shrink_page_list: unmap anon pages after pageout
Add non
the page that the
compressed size is smaller than a value.
With these patches, I set the value to 2048 and did the same test with
before. The compression rate is about 20%. The times of lowmemorykiller
also decreased.
Hui Zhu (4):
vmscan.c: shrink_page_list: unmap anon pages after pageout
Add non
New option ZRAM_NON_SWAP add a interface "non_swap" to zram.
User can set a unsigned int value to zram.
If a page that compressed size is bigger than limit, mark it as
non-swap. Then this page will add to unevictable lru list.
This patch doesn't handle the shmem file pages.
Signed-o
After a page marked non-swap flag in swap driver, it will add to
unevictable lru list.
This page will be kept in this status before its data changed.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
fs/proc/meminfo.c | 6 ++
include/linux/mm_inline.h
New option ZRAM_NON_SWAP add a interface "non_swap" to zram.
User can set a unsigned int value to zram.
If a page that compressed size is bigger than limit, mark it as
non-swap. Then this page will add to unevictable lru list.
This patch doesn't handle the shmem file pages.
Signed-o
After a page marked non-swap flag in swap driver, it will add to
unevictable lru list.
This page will be kept in this status before its data changed.
Signed-off-by: Hui Zhu
---
fs/proc/meminfo.c | 6 ++
include/linux/mm_inline.h | 20 ++--
include/linux
is shmem file
page. Then I separate code of shmem file pages to last patch of this
series.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
include/linux/rmap.h | 5
mm/Kconfig | 4 +++
mm/page_io.c | 11 ---
mm/rmap.c| 28 ++
mm/vm
is shmem file
page. Then I separate code of shmem file pages to last patch of this
series.
Signed-off-by: Hui Zhu
---
include/linux/rmap.h | 5
mm/Kconfig | 4 +++
mm/page_io.c | 11 ---
mm/rmap.c| 28 ++
mm/vmscan.c | 81
This patch add the whole support for shmem file pages non swap.
To make sure a page is shmem file page, check mapping->a_ops == _aops.
I think it is really a hack way.
There are not a lot of shmem file pages will be swapped out.
Signed-off-by: Hui Zhu <zhu...@xiaomi.com>
---
drivers/b
This patch add the whole support for shmem file pages non swap.
To make sure a page is shmem file page, check mapping->a_ops == _aops.
I think it is really a hack way.
There are not a lot of shmem file pages will be swapped out.
Signed-off-by: Hui Zhu
---
drivers/block/zram/zram_drv.c |
From: Greg KH [mailto:gre...@linuxfoundation.org]
Sent: Thursday, July 28, 2016 5:09 PM
To: Sheng-Hui J. Chu <s.jeffrey@gmail.com>
Cc: linux-...@vger.kernel.org; jo...@kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6] usb: serial: ftdi_sio Added 0a5c:6422 device ID for
From: Greg KH [mailto:gre...@linuxfoundation.org]
Sent: Thursday, July 28, 2016 5:09 PM
To: Sheng-Hui J. Chu
Cc: linux-...@vger.kernel.org; jo...@kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6] usb: serial: ftdi_sio Added 0a5c:6422 device ID for
WICED USB UART dev board
On Thu
BCM20706V2_EVAL is a WICED dev board designed with FT2232H USB 2.0 UART/FIFO IC.
To support BCM920706V2_EVAL dev board for WICED development on Linux. Add the
VID(0a5c) and
PID(6422) to ftdi_sio driver to allow loading ftdi_sio for this board.
Signed-off-by: Sheng-Hui J. Chu <s.jeff
BCM20706V2_EVAL is a WICED dev board designed with FT2232H USB 2.0 UART/FIFO IC.
To support BCM920706V2_EVAL dev board for WICED development on Linux. Add the
VID(0a5c) and
PID(6422) to ftdi_sio driver to allow loading ftdi_sio for this board.
Signed-off-by: Sheng-Hui J. Chu
---
drivers/usb
BCM20706V2_EVAL is a WICED dev board designed with FT2232H USB 2.0 UART/FIFO IC.
To support BCM920706V2_EVAL dev board for WICED development on Linux. Add the
VID(0a5c) and
PID(6422) to ftdi_sio driver to allow loading ftdi_sio for this board.
Signed-off-by: Sheng-Hui Chu <s...@cypress.
BCM20706V2_EVAL is a WICED dev board designed with FT2232H USB 2.0 UART/FIFO IC.
To support BCM920706V2_EVAL dev board for WICED development on Linux. Add the
VID(0a5c) and
PID(6422) to ftdi_sio driver to allow loading ftdi_sio for this board.
Signed-off-by: Sheng-Hui Chu
---
drivers/usb
BCM20706V2_EVAL is a WICED dev board designed with FT2232H USB 2.0 UART/FIFO
IC.
To support BCM920706V2_EVAL dev board for WICED development on Linux. Add
the VID(0a5c) and
PID(6422) to ftdi_sio driver to allow loading ftdi_sio for this board.
Signed-off-by: Sheng-Hui J. Chu <s.jeff
BCM20706V2_EVAL is a WICED dev board designed with FT2232H USB 2.0 UART/FIFO
IC.
To support BCM920706V2_EVAL dev board for WICED development on Linux. Add
the VID(0a5c) and
PID(6422) to ftdi_sio driver to allow loading ftdi_sio for this board.
Signed-off-by: Sheng-Hui J. Chu
---
drivers/usb
Add the selection options for the cyclic scheduler
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
drivers/rtc/Kconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 3e84315..8da9796 100644
--- a/drivers/rtc/Kconfig
+++ b/d
Add the selection options for the cyclic scheduler
Signed-off-by: Bill Huey (hui)
---
drivers/rtc/Kconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 3e84315..8da9796 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -73,6
Redirect rtc update irqs so that it drives the cyclic scheduler timer
handler instead. Let the handler determine which slot to activate next.
Similar to scheduler tick handling but just for the cyclic scheduler.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
drivers/rtc/inter
Redirect rtc update irqs so that it drives the cyclic scheduler timer
handler instead. Let the handler determine which slot to activate next.
Similar to scheduler tick handling but just for the cyclic scheduler.
Signed-off-by: Bill Huey (hui)
---
drivers/rtc/interface.c | 23
wait-queue changes to rtc_dev_read so that it can support overrun count
reporting when multiple threads are blocked against a single wait object.
ioctl() additions to allow for those calling it to admit the thread into
the cyclic scheduler.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.
Add additional ioctl() values to rtc so that it can 'admit' the calling
thread into a red-black tree for tracking, set the execution slot pattern,
support for setting whether read() will yield or block.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
include/uapi/linux/rtc.h | 4 +
Anonymous struct initialization
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
include/linux/init_task.h | 18 ++
1 file changed, 18 insertions(+)
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index f2cb8d4..ac9b0d9 100644
--- a/include
Add additional ioctl() values to rtc so that it can 'admit' the calling
thread into a red-black tree for tracking, set the execution slot pattern,
support for setting whether read() will yield or block.
Signed-off-by: Bill Huey (hui)
---
include/uapi/linux/rtc.h | 4
1 file changed, 4
Anonymous struct initialization
Signed-off-by: Bill Huey (hui)
---
include/linux/init_task.h | 18 ++
1 file changed, 18 insertions(+)
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index f2cb8d4..ac9b0d9 100644
--- a/include/linux/init_task.h
+++ b/include
wait-queue changes to rtc_dev_read so that it can support overrun count
reporting when multiple threads are blocked against a single wait object.
ioctl() additions to allow for those calling it to admit the thread into
the cyclic scheduler.
Signed-off-by: Bill Huey (hui)
---
drivers/rtc/rtc
Makefile changes to support the menuconfig option
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
kernel/sched/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile
index 414d9c1..1e12a32 100644
--- a/kernel/sched/Makefile
Task tracking per file descriptor for thread death clean up.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
drivers/rtc/class.c | 3 +++
include/linux/rtc.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 74fd974..ad570b9
Makefile changes to support the menuconfig option
Signed-off-by: Bill Huey (hui)
---
kernel/sched/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile
index 414d9c1..1e12a32 100644
--- a/kernel/sched/Makefile
+++ b/kernel/sched/Makefile
Task tracking per file descriptor for thread death clean up.
Signed-off-by: Bill Huey (hui)
---
drivers/rtc/class.c | 3 +++
include/linux/rtc.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 74fd974..ad570b9 100644
--- a/drivers/rtc
be SCHED_FIFO.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
kernel/sched/core.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 8b489fc..76634d3 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -87,6
be SCHED_FIFO.
Signed-off-by: Bill Huey (hui)
---
kernel/sched/core.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 8b489fc..76634d3 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -87,6 +87,10 @@
#include
SCHED_FIFO/RT tail/head runqueue insertion support, initial thread death
support via a hook to the scheduler class. Thread death must include
additional semantics to remove/discharge an admitted task properly.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
kernel/sched/rt.
SCHED_FIFO/RT tail/head runqueue insertion support, initial thread death
support via a hook to the scheduler class. Thread death must include
additional semantics to remove/discharge an admitted task properly.
Signed-off-by: Bill Huey (hui)
---
kernel/sched/rt.c | 41
thread exited running SCHED_RR = 2
tid 1, 0x0052
thread exited running SCHED_RR = 1
pthread done
billh@machine:~$
---
Bill Huey (hui) (12):
Kconfig change
Reroute rtc update irqs to the cyclic scheduler handler
Add cyclic support to rtc-dev.c
Anonymous struct initia
Core implementation of the cyclic scheduler that includes admittance
handling, thread death supprot, cyclic timer tick handler, primitive proc
debugging interface, wait-queue modifications.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
kernel/sched/cyclic.c
Add an anonymous struct to support admittance using a red-black tree,
overrun tracking, state for whether or not to yield or block, debugging
support, execution slot pattern for the scheduler.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
include/linux/sched.h | 15
Initial attempt at documentation with a test program
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
Documentation/scheduler/sched-cyclic-rtc.txt | 468 +++
1 file changed, 468 insertions(+)
create mode 100644 Documentation/scheduler/sched-cyclic-rtc.txt
thread exited running SCHED_RR = 2
tid 1, 0x0052
thread exited running SCHED_RR = 1
pthread done
billh@machine:~$
---
Bill Huey (hui) (12):
Kconfig change
Reroute rtc update irqs to the cyclic scheduler handler
Add cyclic support to rtc-dev.c
Anonymous struct initia
Core implementation of the cyclic scheduler that includes admittance
handling, thread death supprot, cyclic timer tick handler, primitive proc
debugging interface, wait-queue modifications.
Signed-off-by: Bill Huey (hui)
---
kernel/sched/cyclic.c| 612
Add an anonymous struct to support admittance using a red-black tree,
overrun tracking, state for whether or not to yield or block, debugging
support, execution slot pattern for the scheduler.
Signed-off-by: Bill Huey (hui)
---
include/linux/sched.h | 15 +++
1 file changed, 15
Initial attempt at documentation with a test program
Signed-off-by: Bill Huey (hui)
---
Documentation/scheduler/sched-cyclic-rtc.txt | 468 +++
1 file changed, 468 insertions(+)
create mode 100644 Documentation/scheduler/sched-cyclic-rtc.txt
diff --git a/Documentation
thread exited running SCHED_RR = 2
tid 1, 0x0052
thread exited running SCHED_RR = 1
pthread done
billh@machine:~$
---
Bill Huey (hui) (12):
Kconfig change
Reroute rtc update irqs to the cyclic scheduler handler
Add cyclic support to rtc-dev.c
Anonymous struct initia
thread exited running SCHED_RR = 2
tid 1, 0x0052
thread exited running SCHED_RR = 1
pthread done
billh@machine:~$
---
Bill Huey (hui) (12):
Kconfig change
Reroute rtc update irqs to the cyclic scheduler handler
Add cyclic support to rtc-dev.c
Anonymous struct initia
Add the selection options for the cyclic scheduler
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
drivers/rtc/Kconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 544bd34..8a1b704 100644
--- a/drivers/rtc/Kconfig
+++ b/d
Add the selection options for the cyclic scheduler
Signed-off-by: Bill Huey (hui)
---
drivers/rtc/Kconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 544bd34..8a1b704 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -73,6
SCHED_FIFO/RT tail/head runqueue insertion support, initial thread death
support via a hook to the scheduler class. Thread death must include
additional semantics to remove/discharge an admitted task properly.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
kernel/sched/rt.
wait-queue changes to rtc_dev_read so that it can support overrun count
reporting when multiple threads are blocked against a single wait object.
ioctl() additions to allow for those calling it to admit the thread to the
cyclic scheduler.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.
Add additional ioctl() values to rtc so that it can 'admit' the calling
thread into a red-black tree for tracking, set the execution slot pattern,
support for setting whether read() will yield or block.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
include/uapi/linux/rtc.h | 4 +
Task tracking per file descriptor for thread death clean up.
Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com>
---
drivers/rtc/class.c | 3 +++
include/linux/rtc.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 74fd974..ad570b9
like to also credit Marco Ballesio from Palm as well for the
multimedia insights. I omitted that in my first message. Hope the
build bots like these changes :)
bill
---
Bill Huey (hui) (12):
Kconfig change
Reroute rtc update irqs to the cyclic scheduler handler
Add cyclic support to rtc
SCHED_FIFO/RT tail/head runqueue insertion support, initial thread death
support via a hook to the scheduler class. Thread death must include
additional semantics to remove/discharge an admitted task properly.
Signed-off-by: Bill Huey (hui)
---
kernel/sched/rt.c | 41
wait-queue changes to rtc_dev_read so that it can support overrun count
reporting when multiple threads are blocked against a single wait object.
ioctl() additions to allow for those calling it to admit the thread to the
cyclic scheduler.
Signed-off-by: Bill Huey (hui)
---
drivers/rtc/rtc
301 - 400 of 907 matches
Mail list logo