[RFC 1/2] Try to use HighAtomic if try to alloc umovable page that order is not 0

2017-09-26 Thread Hui Zhu
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

[RFC 2/2] Change limit of HighAtomic from 1% to 10%

2017-09-26 Thread Hui Zhu
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

[RFC 0/2] Use HighAtomic against long-term fragmentation

2017-09-26 Thread Hui Zhu
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

[RFC 2/2] Change limit of HighAtomic from 1% to 10%

2017-09-26 Thread Hui Zhu
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

[RFC 0/2] Use HighAtomic against long-term fragmentation

2017-09-26 Thread Hui Zhu
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

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-16 Thread Hui Zhu
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,

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-16 Thread Hui Zhu
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

[PATCH] zsmalloc: zs_page_isolate: skip unnecessary loops but not return false if zspage is not inuse

2017-08-16 Thread Hui Zhu
-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

[PATCH] zsmalloc: zs_page_isolate: skip unnecessary loops but not return false if zspage is not inuse

2017-08-16 Thread Hui Zhu
-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

[PATCH v3] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Hui Zhu
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

[PATCH v3] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Hui Zhu
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

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Hui Zhu
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

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Hui Zhu
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

[PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
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

[PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
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

Re: [PATCH] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
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

Re: [PATCH] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
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

[PATCH] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
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 +++

[PATCH] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
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

[PATCH] zsmalloc: zs_page_migrate: skip unnecessary loops but not return -EBUSY if zspage is not inuse

2017-07-24 Thread Hui Zhu
/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(

[PATCH] zsmalloc: zs_page_migrate: skip unnecessary loops but not return -EBUSY if zspage is not inuse

2017-07-24 Thread Hui Zhu
/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

Re: [PATCH] zsmalloc: zs_page_migrate: not check inuse if migrate_mode is not MIGRATE_ASYNC

2017-07-20 Thread Hui Zhu
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. >&

Re: [PATCH] zsmalloc: zs_page_migrate: not check inuse if migrate_mode is not MIGRATE_ASYNC

2017-07-20 Thread Hui Zhu
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

Re: [PATCH] zsmalloc: zs_page_migrate: not check inuse if migrate_mode is not MIGRATE_ASYNC

2017-07-20 Thread Hui Zhu
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

Re: [PATCH] zsmalloc: zs_page_migrate: not check inuse if migrate_mode is not MIGRATE_ASYNC

2017-07-20 Thread Hui Zhu
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

[PATCH] zsmalloc: zs_page_migrate: not check inuse if migrate_mode is not MIGRATE_ASYNC

2017-07-14 Thread Hui Zhu
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 --

[PATCH] zsmalloc: zs_page_migrate: not check inuse if migrate_mode is not MIGRATE_ASYNC

2017-07-14 Thread Hui Zhu
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

[RFC 0/2] Add interface let ZRAM close swap cache

2016-11-25 Thread Hui Zhu
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

[RFC 0/2] Add interface let ZRAM close swap cache

2016-11-25 Thread Hui Zhu
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

[RFC 1/2] SWAP: add interface to let disk close swap cache

2016-11-25 Thread Hui Zhu
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

[RFC 1/2] SWAP: add interface to let disk close swap cache

2016-11-25 Thread Hui Zhu
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

[RFC 2/2] ZRAM: add sysfs switch swap_cache_not_keep

2016-11-25 Thread Hui Zhu
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

[RFC 2/2] ZRAM: add sysfs switch swap_cache_not_keep

2016-11-25 Thread Hui Zhu
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

Re: [PATCH] PCI: move cfg space size (256/4096) macros to pci_regs.h

2016-11-11 Thread Wang Sheng-Hui
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>; "

Re: [PATCH] PCI: move cfg space size (256/4096) macros to pci_regs.h

2016-11-11 Thread Wang Sheng-Hui
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

[PATCH] PCI: move cfg space size (256/4096) macros to pci_regs.h

2016-09-21 Thread 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 <

[PATCH] PCI: move cfg space size (256/4096) macros to pci_regs.h

2016-09-21 Thread 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

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-05 Thread Hui Zhu
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

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-05 Thread Hui Zhu
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

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Hui Zhu
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, >>

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Hui Zhu
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: >> >

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-25 Thread Hui Zhu
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

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-25 Thread Hui Zhu
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

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-23 Thread Hui Zhu
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

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-23 Thread Hui Zhu
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

[RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-22 Thread Hui Zhu
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

[RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-22 Thread Hui Zhu
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

[RFC 3/4] ZRAM: do not swap the page that compressed size bigger than non_swap

2016-08-22 Thread Hui Zhu
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

[RFC 2/4] Add non-swap page flag to mark a page will not swap

2016-08-22 Thread Hui Zhu
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

[RFC 3/4] ZRAM: do not swap the page that compressed size bigger than non_swap

2016-08-22 Thread Hui Zhu
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

[RFC 2/4] Add non-swap page flag to mark a page will not swap

2016-08-22 Thread Hui Zhu
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

[RFC 1/4] vmscan.c: shrink_page_list: unmap anon pages after pageout

2016-08-22 Thread Hui Zhu
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

[RFC 1/4] vmscan.c: shrink_page_list: unmap anon pages after pageout

2016-08-22 Thread Hui Zhu
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

[RFC 4/4] vmscan.c: zram: add non swap support for shmem file pages

2016-08-22 Thread Hui Zhu
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

[RFC 4/4] vmscan.c: zram: add non swap support for shmem file pages

2016-08-22 Thread Hui Zhu
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 |

RE: [PATCH v6] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

RE: [PATCH v6] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

[PATCH v6] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

[PATCH v6] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

[PATCH v5] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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.

[PATCH v5] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

[PATCH v4] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

[PATCH v4] usb: serial: ftdi_sio Added 0a5c:6422 device ID for WICED USB UART dev board

2016-07-28 Thread Sheng-Hui J. Chu
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

[PATCH RFC v2 01/12] Kconfig change

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 01/12] Kconfig change

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 02/12] Reroute rtc update irqs to the cyclic scheduler handler

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 02/12] Reroute rtc update irqs to the cyclic scheduler handler

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 03/12] Add cyclic support to rtc-dev.c

2016-04-18 Thread Bill Huey (hui)
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.

[PATCH RFC v2 07/12] kernel/userspace additions for addition ioctl() support for rtc

2016-04-18 Thread Bill Huey (hui)
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 +

[PATCH RFC v2 04/12] Anonymous struct initialization

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 07/12] kernel/userspace additions for addition ioctl() support for rtc

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 04/12] Anonymous struct initialization

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 03/12] Add cyclic support to rtc-dev.c

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 08/12] Compilation support

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 05/12] Task tracking per file descriptor

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 08/12] Compilation support

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 05/12] Task tracking per file descriptor

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 09/12] Add priority support for the cyclic scheduler

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 09/12] Add priority support for the cyclic scheduler

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 10/12] Export SCHED_FIFO/RT requeuing functions

2016-04-18 Thread Bill Huey (hui)
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.

[PATCH RFC v2 10/12] Export SCHED_FIFO/RT requeuing functions

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 00/12] Cyclic Scheduler Against RTC

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 11/12] Cyclic scheduler support

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 06/12] Add anonymous struct to sched_rt_entity

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 12/12] Cyclic/rtc documentation

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 00/12] Cyclic Scheduler Against RTC

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 11/12] Cyclic scheduler support

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 06/12] Add anonymous struct to sched_rt_entity

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 12/12] Cyclic/rtc documentation

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 00/12] Cyclic Scheduler Against RTC

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v2 00/12] Cyclic Scheduler Against RTC

2016-04-18 Thread Bill Huey (hui)
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

[PATCH RFC v1 01/12] Kconfig change

2016-04-14 Thread Bill Huey (hui)
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

[PATCH RFC v1 01/12] Kconfig change

2016-04-14 Thread Bill Huey (hui)
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

[PATCH RFC v1 10/12] Export SCHED_FIFO/RT requeuing functions

2016-04-14 Thread Bill Huey (hui)
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.

[PATCH RFC v1 03/12] Add cyclic support to rtc-dev.c

2016-04-14 Thread Bill Huey (hui)
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.

[PATCH RFC v1 07/12] kernel/userspace additions for addition ioctl() support for rtc

2016-04-14 Thread Bill Huey (hui)
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 +

[PATCH RFC v1 05/12] Task tracking per file descriptor

2016-04-14 Thread Bill Huey (hui)
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

[PATCH RFC v1 00/12] Cyclic Scheduler Against RTC

2016-04-14 Thread Bill Huey (hui)
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

[PATCH RFC v1 10/12] Export SCHED_FIFO/RT requeuing functions

2016-04-14 Thread Bill Huey (hui)
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

[PATCH RFC v1 03/12] Add cyclic support to rtc-dev.c

2016-04-14 Thread Bill Huey (hui)
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

<    1   2   3   4   5   6   7   8   9   10   >