[PATCH RFC] Improve the performance of --num-threads -d 31

2016-01-17 Thread Zhou Wenjian
The origin implementation of --num-threads wastes a lot of time dealing with the filtered pages. So it has a great performance degradation when -d 31 is specified. The new implementation is just like the following: * The basic idea is producer producing page and consumer writing page.

[PATCH v1] Improve the performance of --num-threads -d 31

2016-01-31 Thread Zhou Wenjian
hare a page_data_buf array which is used for storing page's compressed data. * The main thread is the consumer. It will find the next pfn and write it into file. * The next pfn is smallest pfn in all page_flag_buf. Signed-off-by: Zhou Wenjian

[PATCH v2] Improve the performance of --num-threads -d 31

2016-02-16 Thread Zhou Wenjian
ext pfn and write it into file. * The next pfn is smallest pfn in all page_flag_buf. Signed-off-by: Zhou Wenjian --- makedumpfile.c | 266 ++--- makedumpfile.h | 31 --- 2 files changed, 200 insertions(+), 97 deletions(-)

[PATCH v3] Improve the performance of --num-threads -d 31

2016-03-04 Thread Zhou Wenjian
f-by: Minoru Usui Signed-off-by: Zhou Wenjian --- makedumpfile.c | 300 +++-- makedumpfile.h | 33 --- 2 files changed, 203 insertions(+), 130 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index fa0b779..d75f7f7 100644 -

[PATCH v4] Improve the performance of --num-threads -d 31

2016-03-08 Thread Zhou Wenjian
fn is smallest pfn in all page_flag_buf. Signed-off-by: Minoru Usui Signed-off-by: Zhou Wenjian --- makedumpfile.c | 298 +++-- makedumpfile.h | 35 --- 2 files changed, 202 insertions(+), 131 deletions(-) diff --git a/makedumpfile.c b/mak

[PATCH V5] Improve the performance of --num-threads -d 31

2016-04-08 Thread Zhou Wenjian
is the consumer. It will find the next pfn and write it into file. * The next pfn is smallest pfn in all page_flag_buf. Signed-off-by: Minoru Usui Signed-off-by: Zhou Wenjian --- makedumpfile.c | 306 +++-- makedumpfile.h | 35

[PATCH v6] Improve the performance of --num-threads -d 31

2016-04-13 Thread Zhou Wenjian
y which is used for storing page's compressed data. * The main thread is the consumer. It will find the next pfn and write it into file. * The next pfn is smallest pfn in all page_flag_buf. Signed-off-by: Minoru Usui Signed-off-by: Zhou Wenj

[PATCH v7] Improve the performance of --num-threads -d 31

2016-04-14 Thread Zhou Wenjian
* And all producers will share a page_data_buf array which is used for storing page's compressed data. * The main thread is the consumer. It will find the next pfn and write it into file. * The next pfn is smallest pfn in all page_flag_buf. Signed-off-by: Mi

[PATCH V8] Improve the performance of --num-threads -d 31

2016-04-17 Thread Zhou Wenjian
smallest pfn in all page_flag_buf. Signed-off-by: Minoru Usui Signed-off-by: Zhou Wenjian --- makedumpfile.c | 325 ++--- makedumpfile.h | 38 --- 2 files changed, 215 insertions(+), 148 deletions(-) diff --git a/makedumpfile.c b/make

[PATCH 1/2] Documentation: kdump: update maxcpus to nr_cpus

2016-07-28 Thread Zhou Wenjian
Parameter nr_cpus is used to bring up a SMP dump-capture kernel, instead of the old parameter maxcpus. This commit update it in Documentation/kdump/kdump.txt. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 2/2] Documentation: kdump: add description of bringing up SMP dump-capture kernel

2016-07-28 Thread Zhou Wenjian
SMP dump-capture kernel is useful to improve the performance of kdump in some cases. So add the description of bringing up SMP dump-capture kernel. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/kdump

[PATCH] makedumpfile: Add more descriptions of multi-threads feature

2016-07-28 Thread Zhou Wenjian
It will have a bad performance if the threads number is larger than the usable cpu number. So we should remind user of it. Signed-off-by: Zhou Wenjian --- makedumpfile.8 | 2 ++ print_info.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/makedumpfile.8 b/makedumpfile.8 index 3b6f7e2

[PATCH v2] Documentation: kdump: add description of bringing up SMP dump-capture kernel

2016-07-31 Thread Zhou Wenjian
v1->v2: change nr_cpus to maxcpus SMP dump-capture kernel is useful to improve the performance of kdump in some cases. So add the description of bringing up SMP dump-capture kernel. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 6 ++ 1 file changed, 6 insertions(+) d

[PATCH] makedumpfile: Change num_threads to num_producers

2016-07-31 Thread Zhou Wenjian
" - 1; In addition, thread_num is changed to producer_num. Signed-off-by: Zhou Wenjian --- makedumpfile.c | 108 - makedumpfile.h | 4 +-- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c

[PATCH v3 2/2] Documentation: kdump: add description of bringing up SMP dump-capture kernel

2016-08-02 Thread Zhou Wenjian
SMP dump-capture kernel is useful to improve the performance of kdump in some cases. So add the description of bringing up SMP dump-capture kernel. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/kdump

[PATCH v3 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-02 Thread Zhou Wenjian
v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/kdump/kdump

[PATCH v4 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-02 Thread Zhou Wenjian
multi-cpus support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpus support in dump-capture kernel. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation

[PATCH v4 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-02 Thread Zhou Wenjian
v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 2 ++ 1 file c

[PATCH v5 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-09 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v5 0/2] update the doc of kdump

2016-08-09 Thread Zhou Wenjian
v4->v5: move change log to cover letter v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus Zhou Wenjian (2): Documentation: kdump: remind user of nr_cpus Documentation: kdump: add description of

[PATCH v5 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-09 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt index 88ff63d..b474060 100644

[PATCH v6 0/2] update the doc of kdump

2016-08-14 Thread Zhou Wenjian
v5->v6: replace "we" with "you" v4->v5: move change log to cover letter v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus Zhou Wenjian (2): Documentation: kdump: remind use

[PATCH v6 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-14 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 2 +++- 1 file changed, 2 insertions(+) diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt index 88ff63d..96da2b7

[PATCH v6 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-14 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v7 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v7 0/2] update the doc of kdump

2016-08-17 Thread Zhou Wenjian
v6->v7: fix typo v5->v6: replace "we" with "you" v4->v5: move change log to cover letter v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus Zhou Wenjian (2): Docume

[PATCH v7 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He --- Documentation/kdump/kdump.txt | 2 +++- 1 file changed, 2 insertions(+) diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt index 88ff63d..96da2b7

[PATCH v8 0/2] update the doc of kdump

2016-08-17 Thread Zhou Wenjian
ernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus Zhou Wenjian (2): Documentation: kdump: remind user of nr_cpus Documentation: kdump: add description of enable multi-cpus support Documentation/kdump/kdump.t

[PATCH v8 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang --- Documentation/kdump/kdump.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump

[PATCH v8 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7

[PATCH v9 2/2] Documentation: kdump: add description of enable multi-cpus support

2016-08-17 Thread Zhou Wenjian
multi-cpu support is useful to improve the performance of kdump in some cases. So add the description of enable multi-cpu support in dump-capture kernel. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang --- Documentation/kdump/kdump.txt | 7 +++ 1 file changed, 7

[PATCH v9 0/2] update the doc of kdump

2016-08-17 Thread Zhou Wenjian
v5->v6: replace "we" with "you" v4->v5: move change log to cover letter v3->v4: update the description of bring up SMP dump-capture kernel v2->v3: add description of nr_cpus. v1->v2: change nr_cpus to maxcpus Zhou Wenjian (2): Documentation: kdump: remind user o

[PATCH v9 1/2] Documentation: kdump: remind user of nr_cpus

2016-08-17 Thread Zhou Wenjian
nr_cpus can help to save memory. So we should remind user of it. Signed-off-by: Zhou Wenjian Acked-by: Baoquan He Acked-by: Xunlei Pang --- Documentation/kdump/kdump.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt index

[PATCH] makedumpfile: Fix a bug when multi-threads feature meets enospace

2018-01-29 Thread Zhou Wenjian
sed != FALSE) { index = (index + 1) % info->num_buffers; } page_data_buf[index].used = TRUE; pthread_mutex_unlock(&info->page_data_mutex); Then makedumpfile hangs. This patch add a cancel point in while{}. Signed-off-by: Zhou Wenjia

Re: [PATCH] makedumpfile: Fix a bug when multi-threads feature meets enospace

2018-02-08 Thread Zhou Wenjian
ping... On 01/29/2018 08:54 PM, Zhou Wenjian wrote: Currently, when multi-threads feature meets enospace error, the main thread will call pthread_join(). However, there is one thread doing while{} and won't stop. pthread_mutex_lock(&info->pag

Re: [PATCH] makedumpfile: Fix a bug when multi-threads feature meets enospace

2018-02-27 Thread Zhou Wenjian
7;ll merge it into V1.6.4. Thanks tachibana -Original Message- From: kexec [mailto:kexec-boun...@lists.infradead.org] On Behalf Of Zhou Wenjian Sent: Thursday, February 08, 2018 8:53 PM To: kexec@lists.infradead.org Cc: Kumagai Atsushi() ; Suzuki Keiichirou() Subject: Re: [PATCH] ma

[PATCH v1 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time

2014-09-29 Thread Zhou Wenjian
3-pass algorhythm origin 6.64(3.05) 6.81(3.24) 7.51(3.93) 8.86(5.30) 10.51(6.94) 13.92(10.36)14.11(10.55) Zhou Wenjian (5): Add support for block Add tools for reading and writing from block table Add module of generating table Add module of

[PATCH v1 3/5] makedumpfile: Add module of generating table

2014-09-29 Thread Zhou Wenjian
set block size and generate basic information of block table Signed-off-by: HATAYAMA Daisuke Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 86 1 files changed, 86 insertions(+), 0 deletions(-) diff --git

[PATCH v1 2/5] makedumpfile: Add tools for reading and writing from block table

2014-09-29 Thread Zhou Wenjian
The function added in this patch, is used for writing and reading value from the char array in struct Block. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/makedumpfile.c

[PATCH v1 1/5] makedumpfile: Add support for block

2014-09-29 Thread Zhou Wenjian
. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 23 +++ makedumpfile.h | 14 ++ 2 files changed, 37 insertions(+), 0 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index b4d43d8..2feda01 100644 --- a/makedumpfile.c +++ b

[PATCH v1 4/5] makedumpfile: Add module of calculating start_pfn and end_pfn in each dumpfile

2014-09-29 Thread Zhou Wenjian
When --split is specified in cyclic mode, start_pfn and end_pfn of each dumpfile will be calculated to make each dumpfile have the same size. Signed-off-by: HATAYAMA Daisuke Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 109

[PATCH v1 5/5] makedumpfile: Add support for --block-size

2014-09-29 Thread Zhou Wenjian
Use --block-size to specify block size (KB) When --split is specified in cyclic mode,block table will be generated in get_num_dumpable_cyclic. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.8 | 16 makedumpfile.c |4 makedumpfile.h |1

[PATCH v2 5/5] Add support for --splitblock-size

2014-10-13 Thread Zhou Wenjian
Use --splitblock-size to specify splitblock size (KB) When --split is specified in cyclic mode,splitblock table will be generated in create_dump_bitmap(). Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.8 | 16 makedumpfile.c |4

[PATCH v2 1/5] Add support for splitblock

2014-10-13 Thread Zhou Wenjian
splitblock is big enough. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 23 +++ makedumpfile.h | 14 ++ 2 files changed, 37 insertions(+), 0 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index b4d43d8..95d553c 100644

[PATCH v2 3/5] Add module of generating table

2014-10-13 Thread Zhou Wenjian
set block size and generate basic information of block table Signed-off-by: HATAYAMA Daisuke Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 95 +++- makedumpfile.h |2 + 2 files changed, 96 insertions(+), 1

[PATCH v2 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile

2014-10-13 Thread Zhou Wenjian
When --split is specified in cyclic mode, start_pfn and end_pfn of each dumpfile will be calculated to make each dumpfile have the same size. Signed-off-by: HATAYAMA Daisuke Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 109

[PATCH v2 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time

2014-10-13 Thread Zhou Wenjian
ize adjust the position of prepare_splitblock_table and check the return code use --splitblock-size to specify splitblock size and modify the print_info.c Zhou Wenjian (5): Add support for splitblock Add tools for reading and writing from splitblock table Add module

[PATCH v2 2/5] Add tools for reading and writing from splitblock table

2014-10-13 Thread Zhou Wenjian
The function added in this patch, is used for writing and reading value from the char array in struct SplitBlock. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a

[PATCH v3 2/3] make the incomplete dumpfile generated by ENOSPC error analyzable

2014-10-13 Thread Zhou Wenjian
" to indicate that it has been modified. The method of dealing with "kdump-compressed" format dumpfiles is implemented in the next patch. Signed-of-by: Wang Xiao Singed-of-by: Zhou Wenjian --- makedumpfile.c | 115 ++-- 1 files

[PATCH v3 1/3] makedumpfile: make get_elf64_phdr()/get_elf32_phdr() public

2014-10-13 Thread Zhou Wenjian
From: Wang Xiao Move the following two functions from internal function to external function. get_elf64_phdr(int fd, char *filename, int index, Elf64_Phdr *phdr) get_elf32_phdr(int fd, char *filename, int index, Elf32_Phdr *phdr) Signed-of-by: Wang Xiao --- elf_info.c | 71 +

[PATCH v3 3/3] implementation of dealing with kdump-compressed dumpfile with ENOSPC error

2014-10-13 Thread Zhou Wenjian
From: Wang Xiao kdump-compressed: Dump the bitmap before any page header and page data. This format use "status" of "disk_dump_header" to indicate that it has been modified. Signed-of-by: Wang Xiao --- diskdump_mod.h |2 + makedumpfile.c | 80 +

[PATCH v3 0/3] make incomplete dumpfile analyzable

2014-10-13 Thread Zhou Wenjian
v2->v3: remove the part of changing PT_LOAD header add check_and_modify_headers() Wang Xiao (3): makedumpfile: make get_elf64_phdr()/get_elf32_phdr() public make the incomplete dumpfile generated by ENOSPC error analyzable implementation of dealing with kdump-compressed dumpf

[PATCH v4 2/4] makedumpfile: make the incomplete dumpfile generated by ENOSPC error analyzable

2014-10-19 Thread Zhou Wenjian
From: Wang Xiao Since the incomplete dumpfile generated by ENOSPC error can't be anylyzed by crash utility, but sometimes this file may contain important information and the panic problem won't be reproduced, then we came up with an idea to modify the exist data of the incomplete dumpfile to make

[PATCH v4 3/4] makedumpfile: implementation of dealing with kdump-compressed dumpfile with ENOSPC error

2014-10-19 Thread Zhou Wenjian
From: Wang Xiao kdump-compressed: Dump the bitmap before any page header and page data. This format use "status" of "disk_dump_header" to indicate that it has been modified. Signed-of-by: Wang Xiao --- diskdump_mod.h |2 + makedumpfile.c | 80 +

[PATCH v4 1/4] makedumpfile: make get_elf64_phdr()/get_elf32_phdr() public

2014-10-19 Thread Zhou Wenjian
From: Wang Xiao Move the following two functions from internal function to external function. get_elf64_phdr(int fd, char *filename, int index, Elf64_Phdr *phdr) get_elf32_phdr(int fd, char *filename, int index, Elf32_Phdr *phdr) Signed-of-by: Wang Xiao --- elf_info.c | 71 +

[PATCH v4 0/4] makedumpfile: make incomplete dumpfile analyzable

2014-10-19 Thread Zhou Wenjian
mplete dumpfile generated by ENOSPC error analyzable implementation of dealing with kdump-compressed dumpfile with ENOSPC error Zhou Wenjian (1): Fix reassemble_kdump_header() diskdump_mod.h |2 + elf_info.c | 71 ++-- elf_info.h |2 + makedumpfile.c

[PATCH v4 4/4] makedumpfile: Fix reassemble_kdump_header()

2014-10-19 Thread Zhou Wenjian
fix it to take over incomplete flags of all dump file Singed-of-by: Zhou Wenjian --- makedumpfile.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index 4dba83e..f072069 100644 --- a/makedumpfile.c +++ b/makedumpfile.c

[PATCH V3 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile

2014-10-30 Thread Zhou Wenjian
When --split is specified in cyclic mode, start_pfn and end_pfn of each dumpfile will be calculated to make each dumpfile have the same size. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 71 1 files

[PATCH V3 1/5] Add support for splitblock

2014-10-30 Thread Zhou Wenjian
splitblock is big enough. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 31 +++ makedumpfile.h | 14 ++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index b4d43d8..7017943

[PATCH V3 5/5] Add support for --splitblock-size

2014-10-30 Thread Zhou Wenjian
Use --splitblock-size to specify splitblock size (KB) When --split is specified in cyclic mode,splitblock table will be generated in create_dump_bitmap(). Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.8 | 10 ++ makedumpfile.c |4 makedumpfile.h

[PATCH V3 2/5] Add tools for reading and writing from splitblock table

2014-10-30 Thread Zhou Wenjian
The function added in this patch, is used for writing and reading value from the char array in struct SplitBlock. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a

[PATCH V3 3/5] Add module of generating table

2014-10-30 Thread Zhou Wenjian
set block size and generate basic information of block table Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 109 +++- makedumpfile.h |4 ++ 2 files changed, 112 insertions(+), 1 deletions(-) diff --git a

[PATCH V3 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time

2014-10-30 Thread Zhou Wenjian
23.56(0.00) 23.55(0.00) 8G 23.37(0.00) 23.39(0.00) 23.52(0.00) 23.53(0.00) 23.46(0.00) 23.48(0.00) 16G 23.39(0.00) 23.41(0.00) 23.85(0.00) 23.48(0.00) 23.50(0.00) 23.45(0.00) Zhou Wenjian (5): Add support for splitblock Ad

[PATCH V4 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time

2014-11-05 Thread Zhou Wenjian
00) 23.50(0.00) 23.45(0.00) Zhou Wenjian (5): Add support for splitblock Add tools for reading and writing from splitblock table Add module of generating table Add module of calculating start_pfn and end_pfn in each dumpfile Add support for --splitblock-size makedumpfile.8 | 10

[PATCH V4 5/5] Add support for --splitblock-size

2014-11-05 Thread Zhou Wenjian
Use --splitblock-size to specify splitblock size (KB) When --split is specified in cyclic mode,splitblock table will be generated in create_dump_bitmap(). Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.8 | 10 ++ makedumpfile.c |4 makedumpfile.h

[PATCH V4 3/5] Add module of generating table

2014-11-05 Thread Zhou Wenjian
set block size and generate basic information of block table Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 108 +++- makedumpfile.h |4 ++ 2 files changed, 111 insertions(+), 1 deletions(-) diff --git a

[PATCH V4 2/5] Add tools for reading and writing from splitblock table

2014-11-05 Thread Zhou Wenjian
The function added in this patch, is used for writing and reading value from the char array in struct SplitBlock. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a

[PATCH V4 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile

2014-11-05 Thread Zhou Wenjian
When --split is specified in cyclic mode, start_pfn and end_pfn of each dumpfile will be calculated to make each dumpfile have the same size. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 71 1 files

[PATCH V4 1/5] Add support for splitblock

2014-11-05 Thread Zhou Wenjian
splitblock is big enough. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 31 +++ makedumpfile.h | 14 ++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index b4d43d8..7017943

[PATCH V5 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile

2014-11-06 Thread Zhou Wenjian
When --split is specified in cyclic mode, start_pfn and end_pfn of each dumpfile will be calculated to make each dumpfile have the same size. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 73 1 files

[PATCH V5 1/5] Add support for splitblock

2014-11-06 Thread Zhou Wenjian
splitblock is big enough. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 31 +++ makedumpfile.h | 14 ++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index b4d43d8..7017943

[PATCH V5 2/5] Add tools for reading and writing from splitblock table

2014-11-06 Thread Zhou Wenjian
The function added in this patch, is used for writing and reading value from the char array in struct SplitBlock. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a

[PATCH V5 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time

2014-11-06 Thread Zhou Wenjian
0) 23.48(0.00) 16G 23.39(0.00) 23.41(0.00) 23.85(0.00) 23.48(0.00) 23.50(0.00) 23.45(0.00) Zhou Wenjian (5): Add support for splitblock Add tools for reading and writing from splitblock table Add module of generating table Add module of calculating start_p

[PATCH V5 5/5] Add support for --splitblock-size

2014-11-06 Thread Zhou Wenjian
Use --splitblock-size to specify splitblock size (KB) When --split is specified in cyclic mode,splitblock table will be generated in create_dump_bitmap(). Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.8 | 10 ++ makedumpfile.c |4 makedumpfile.h

[PATCH V5 3/5] Add module of generating table

2014-11-06 Thread Zhou Wenjian
set block size and generate basic information of block table Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- makedumpfile.c | 108 +++- makedumpfile.h |4 ++ 2 files changed, 111 insertions(+), 1 deletions(-) diff --git a

[PATCH] makedumpfile: Add description of incomplete dump file

2014-11-12 Thread Zhou Wenjian
Add description of incomplete elf and kdump-compressed dump file in IMPLEMENTATION. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- IMPLEMENTATION | 76 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a

[PATCH 2/2] makedumpfile: Add description of incomplete dump file

2014-11-13 Thread Zhou Wenjian
Add description of incomplete elf and kdump-compressed dump file in IMPLEMENTATION. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou Wenjian --- IMPLEMENTATION | 76 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a

[PATCH 1/2] makedumpfile: Add description of elf dump file

2014-11-13 Thread Zhou Wenjian
Add description of elf dump file in IMPLEMENTATION. Signed-off-by: Zhou Wenjian --- IMPLEMENTATION | 88 1 files changed, 88 insertions(+), 0 deletions(-) diff --git a/IMPLEMENTATION b/IMPLEMENTATION index 2f4cfd6..0e5ad1f 100644 --- a

[PATCH RFC 06/11] Add filter_data_buffer_parallel

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan filter_data_buffer_parallel is used to enable filtering buffer parallely. Signed-off-by: Qiao Nuohan --- erase_info.c | 29 - erase_info.h |2 ++ 2 files changed, 30 insertions(+), 1 deletions(-) diff --git a/erase_info.c b/erase_info.c inde

[PATCH RFC 03/11] Add readpage_elf_parallel

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan readpage_elf_parallel is used to enable reading pages from elf format parallelly. fd_memory should be initialize and offered to each threads individually to avoid conflict. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 98 +

[PATCH RFC 10/11] Make makedumpfile available to read and compress pages parallelly

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan Using this patch, it is available to use multiple threads to read and compress pages. This parallel process will save time. Currently, sadump and xen kdump is not supported. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 77

[PATCH RFC 00/11] makedumpfile: parallel processing

2015-06-05 Thread Zhou Wenjian
This patch set implements parallel processing by means of multiple threads. With this patch set, it is available to use multiple threads to read and compress pages. This parallel process will save time. This feature only supports creating dumpfile in kdump-compressed format from vmcore in kdump-com

[PATCH RFC 04/11] Add read_pfn_parallel

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan read_pfn_parallel is used to enable reading pages from vmcore parallely. Current supported format is kdump-compressed and elf, mmap elf format is also supported. Signed-off-by: Qiao Nuohan --- Makefile |2 ++ makedumpfile.c | 34 ++

[PATCH RFC 05/11] Add function to initial bitmap for parallel use

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan initialize_bitmap_memory_parallel and initialize_2nd_bitmap_parallel is used for parallel process to avoid conflict on bitmap. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 20 makedumpfile.h | 18 ++ 2 files changed, 38 insertions(+

[PATCH RFC 08/11] Add write_kdump_pages_parallel_cyclic to allow parallel process in cyclic_mode

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan Use several threads to read and compress pages and one thread to write the produced pages into dumpfile. This patch is used for cyclic mode. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 390 1 files changed, 390 ins

[PATCH RFC 09/11] Initial and free data used for parallel process

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan This patch is used to initial/free data for parallel process and the memory limit is concerned in this function. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 202 makedumpfile.h |1 + 2 files changed, 203 insert

[PATCH RFC 11/11] Add usage and manual about multiple threads process

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan Signed-off-by: Qiao Nuohan --- makedumpfile.8 | 24 print_info.c | 16 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/makedumpfile.8 b/makedumpfile.8 index 9752671..5a760c8 100644 --- a/makedumpfile.8 +++ b/maked

[PATCH RFC 07/11] Add write_kdump_pages_parallel to allow parallel process

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan Use several threads to read and compress pages and one thread to write the produced pages into dumpfile. The produced pages will be stored in a buffer, then the consumer thread will get pages from this buffer. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 450 +

[PATCH RFC 01/11] Add readpage_kdump_compressed_parallel

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan readpage_kdump_compressed_parallel is used to enable reading pages from vmcore in kdump-compressed format parallel. fd_memory and bitmap_memory should be initialized and offered to each thread individually to avoid conflict. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 13

[PATCH RFC 02/11] Add mappage_elf_parallel

2015-06-05 Thread Zhou Wenjian
From: Qiao Nuohan mappage_elf_parallel is used to enable mmaping elf format to memory parallelly. later patch will will use the mmapped memory to get data of each page. fd_memory and mmap_cache should be initialized and offered to each threads individually to avoid conflict. Signed-off-by: Qiao

[PATCH v2 01/10] Add readpage_kdump_compressed_parallel

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan readpage_kdump_compressed_parallel is used to enable reading pages from vmcore in kdump-compressed format parallel. fd_memory and bitmap_memory should be initialized and offered to each thread individually to avoid conflict. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou

[PATCH v2 03/10] Add readpage_elf_parallel

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan readpage_elf_parallel is used to enable reading pages from elf format parallelly. fd_memory should be initialize and offered to each threads individually to avoid conflict. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 98 +

[PATCH v2 10/10] Add usage and manual about multiple threads process

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan Signed-off-by: Qiao Nuohan --- makedumpfile.8 | 24 print_info.c | 16 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/makedumpfile.8 b/makedumpfile.8 index 2d38cd0..b400a14 100644 --- a/makedumpfile.8 +++ b/maked

[PATCH v2 08/10] Initial and free data used for parallel process

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan This patch is used to initial/free data for parallel process and the memory limit is concerned in this function. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 202 makedumpfile.h |1 + 2 files changed, 203 insert

[PATCH v2 05/10] Add function to initial bitmap for parallel use

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan initialize_bitmap_memory_parallel and initialize_2nd_bitmap_parallel is used for parallel process to avoid conflict on bitmap. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 20 makedumpfile.h | 18 ++ 2 files changed, 38 insertions(+

[PATCH v2 02/10] Add mappage_elf_parallel

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan mappage_elf_parallel is used to enable mmaping elf format to memory parallelly. later patch will will use the mmapped memory to get data of each page. fd_memory and mmap_cache should be initialized and offered to each threads individually to avoid conflict. Signed-off-by: Qiao

[PATCH v2 04/10] Add read_pfn_parallel

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan read_pfn_parallel is used to enable reading pages from vmcore parallely. Current supported format is kdump-compressed and elf, mmap elf format is also supported. Signed-off-by: Qiao Nuohan --- Makefile |2 ++ makedumpfile.c | 34 ++

[PATCH v2 06/10] Add filter_data_buffer_parallel

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan filter_data_buffer_parallel is used to enable filtering buffer parallely. Signed-off-by: Qiao Nuohan --- erase_info.c | 29 - erase_info.h |2 ++ 2 files changed, 30 insertions(+), 1 deletions(-) diff --git a/erase_info.c b/erase_info.c inde

[PATCH v2 09/10] Make makedumpfile available to read and compress pages parallelly

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan Using this patch, it is available to use multiple threads to read and compress pages. This parallel process will save time. Currently, sadump and xen kdump is not supported. Signed-off-by: Qiao Nuohan --- makedumpfile.c | 68

[PATCH v2 07/10] Add write_kdump_pages_parallel to allow parallel process

2015-06-19 Thread Zhou Wenjian
From: Qiao Nuohan Use several threads to read and compress pages and one thread to write the produced pages into dumpfile. The produced pages will be stored in a buffer, then the consumer thread will get pages from this buffer. Signed-off-by: Qiao Nuohan Signed-off-by: Zhou wenjian

  1   2   3   >