diff for duplicates of <20140708010936.GC6076@bbox> diff --git a/a/1.txt b/N1/1.txt index 9af602f..59991f1 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -11,7 +11,7 @@ On Mon, Jul 07, 2014 at 10:22:48AM +0100, Steve Capper wrote: > > Cc: Will Deacon <will.deacon@arm.com> > > Cc: Steve Capper <steve.capper@linaro.org> > > Cc: Russell King <linux@arm.linux.org.uk> -> > Cc: linux-arm-kernel@lists.infradead.org +> > Cc: linux-arm-kernel at lists.infradead.org > > Signed-off-by: Minchan Kim <minchan@kernel.org> > > --- > > arch/arm64/include/asm/pgtable.h | 2 ++ @@ -89,10 +89,17 @@ Thanks for the review! > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in -> the body to majordomo@kvack.org. For more info on Linux MM, +> the body to majordomo at kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . -> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> +> Don't email: <a href=mailto:"dont@kvack.org"> email at kvack.org </a> -- Kind regards, Minchan Kim +-------------- next part -------------- +A non-text attachment was scrubbed... +Name: thp_alloc.c +Type: text/x-csrc +Size: 1328 bytes +Desc: not available +URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140708/db0fab14/attachment.bin> diff --git a/a/2.hdr b/a/2.hdr deleted file mode 100644 index a9d041e..0000000 --- a/a/2.hdr +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/x-csrc; charset=utf-8 -Content-Disposition: attachment; filename="thp_alloc.c" diff --git a/a/2.txt b/a/2.txt deleted file mode 100644 index 28560d4..0000000 --- a/a/2.txt +++ /dev/null @@ -1,82 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> -#include <unistd.h> -#include <string.h> -#include <pthread.h> - -#define CHUNK_SIZE (20<<20) -#define SLEEP_TIME_SEC 2 -#define NUM_THREAD 12 -#define QUIT 1000 - -int quit; - -void alloc_thp() -{ - int i; - int ret; - char *ptr; - - /* should be aligned with 2M which is THP page size */ - ret = posix_memalign((void**)&ptr, 2<<20, CHUNK_SIZE); - if (ret) { - fprintf(stderr, "fail to allocate\n"); - return; - } - - memset(ptr, 'a', CHUNK_SIZE); - ret = madvise(ptr, CHUNK_SIZE, 5); - if (ret) { - perror("fail to madvise"); - return; - } - - sleep(SLEEP_TIME_SEC); - - memset(ptr, 'b', CHUNK_SIZE); - sleep(SLEEP_TIME_SEC); - - for (i = 0; i < CHUNK_SIZE; i++) { - if (ptr[i] != 'b') { - fprintf(stderr, "fail to verify\n"); - fprintf(stderr, "Something wrong\n"); - return; - } - } - - free(ptr); -} - -void *thread_alloc(void *priv) -{ - int n = 0; - - while(!quit) { - alloc_thp(); - if (!(n++ % 5)) - printf("I'm working\n"); - if (n == QUIT) - return; - } -} - -int main() -{ - int i, ret; - pthread_t thread[NUM_THREAD]; - - for (i = 0; i < NUM_THREAD; i++) { - ret = pthread_create(&thread[i], NULL, thread_alloc, NULL); - if (ret) { - perror("fail to create thread\n"); - return 1; - } - } - - scanf("%d", &quit); - for (i = 0; i < NUM_THREAD; i++) - pthread_join(thread[i], NULL); - - printf("Test Done\n"); - return 0; -} diff --git a/a/content_digest b/N1/content_digest index 3ca2ff6..9d7e874 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,28 +1,11 @@ "ref\01404694438-10272-1-git-send-email-minchan@kernel.org\0" "ref\01404694438-10272-7-git-send-email-minchan@kernel.org\0" "ref\020140707092247.GA15168@linaro.org\0" - "From\0Minchan Kim <minchan@kernel.org>\0" - "Subject\0Re: [PATCH v10 6/7] ARM: add pmd_[dirty|mkclean] for THP\0" + "From\0minchan@kernel.org (Minchan Kim)\0" + "Subject\0[PATCH v10 6/7] ARM: add pmd_[dirty|mkclean] for THP\0" "Date\0Tue, 8 Jul 2014 10:09:36 +0900\0" - "To\0Steve Capper <steve.capper@linaro.org>\0" - "Cc\0Andrew Morton <akpm@linux-foundation.org>" - linux-kernel@vger.kernel.org - linux-mm@kvack.org - Michael Kerrisk <mtk.manpages@gmail.com> - Linux API <linux-api@vger.kernel.org> - Hugh Dickins <hughd@google.com> - Johannes Weiner <hannes@cmpxchg.org> - Rik van Riel <riel@redhat.com> - KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> - Mel Gorman <mgorman@suse.de> - Jason Evans <je@fb.com> - Zhang Yanfei <zhangyanfei@cn.fujitsu.com> - Kirill A. Shutemov <kirill@shutemov.name> - Catalin Marinas <catalin.marinas@arm.com> - Will Deacon <will.deacon@arm.com> - Russell King <linux@arm.linux.org.uk> - " linux-arm-kernel@lists.infradead.org\0" - "\01:1\0" + "To\0linux-arm-kernel@lists.infradead.org\0" + "\00:1\0" "b\0" "On Mon, Jul 07, 2014 at 10:22:48AM +0100, Steve Capper wrote:\n" "> On Mon, Jul 07, 2014 at 09:53:57AM +0900, Minchan Kim wrote:\n" @@ -37,7 +20,7 @@ "> > Cc: Will Deacon <will.deacon@arm.com>\n" "> > Cc: Steve Capper <steve.capper@linaro.org>\n" "> > Cc: Russell King <linux@arm.linux.org.uk>\n" - "> > Cc: linux-arm-kernel@lists.infradead.org\n" + "> > Cc: linux-arm-kernel at lists.infradead.org\n" "> > Signed-off-by: Minchan Kim <minchan@kernel.org>\n" "> > ---\n" "> > arch/arm64/include/asm/pgtable.h | 2 ++\n" @@ -115,97 +98,19 @@ "> \n" "> --\n" "> To unsubscribe, send a message with 'unsubscribe linux-mm' in\n" - "> the body to majordomo@kvack.org. For more info on Linux MM,\n" + "> the body to majordomo at kvack.org. For more info on Linux MM,\n" "> see: http://www.linux-mm.org/ .\n" - "> Don't email: <a href=mailto:\"dont@kvack.org\"> email@kvack.org </a>\n" + "> Don't email: <a href=mailto:\"dont@kvack.org\"> email at kvack.org </a>\n" "\n" "-- \n" "Kind regards,\n" - Minchan Kim - "\01:2\0" - "fn\0thp_alloc.c\0" - "b\0" - "#include <stdlib.h>\n" - "#include <stdio.h>\n" - "#include <unistd.h>\n" - "#include <string.h>\n" - "#include <pthread.h>\n" - "\n" - "#define CHUNK_SIZE (20<<20)\n" - "#define SLEEP_TIME_SEC \t2\n" - "#define NUM_THREAD\t12\n" - "#define QUIT\t\t1000\n" - "\n" - "int quit;\n" - "\n" - "void alloc_thp()\n" - "{\n" - "\tint i;\n" - "\tint ret;\n" - "\tchar *ptr;\n" - "\n" - "\t/* should be aligned with 2M which is THP page size */\n" - "\tret = posix_memalign((void**)&ptr, 2<<20, CHUNK_SIZE);\n" - "\tif (ret) {\n" - "\t\tfprintf(stderr, \"fail to allocate\\n\");\n" - "\t\treturn;\n" - "\t}\n" - "\t\t\n" - "\tmemset(ptr, 'a', CHUNK_SIZE);\n" - "\tret = madvise(ptr, CHUNK_SIZE, 5);\n" - "\tif (ret) {\n" - "\t\tperror(\"fail to madvise\");\n" - "\t\treturn;\n" - "\t}\n" - "\n" - "\tsleep(SLEEP_TIME_SEC);\n" - "\n" - "\tmemset(ptr, 'b', CHUNK_SIZE);\n" - "\tsleep(SLEEP_TIME_SEC);\n" - "\n" - "\tfor (i = 0; i < CHUNK_SIZE; i++) {\n" - "\t\tif (ptr[i] != 'b') {\n" - "\t\t\tfprintf(stderr, \"fail to verify\\n\");\n" - "\t\t\tfprintf(stderr, \"Something wrong\\n\");\n" - "\t\t\treturn;\n" - "\t\t}\n" - "\t}\n" - "\n" - "\tfree(ptr);\n" - "}\n" - "\n" - "void *thread_alloc(void *priv)\n" - "{\n" - "\tint n = 0;\n" - "\n" - "\twhile(!quit) {\n" - "\t\talloc_thp();\n" - "\t\tif (!(n++ % 5))\n" - "\t\t\tprintf(\"I'm working\\n\");\n" - "\t\tif (n == QUIT)\n" - "\t\t\treturn;\n" - "\t}\n" - "}\n" - "\n" - "int main()\n" - "{\n" - "\tint i, ret;\n" - "\tpthread_t thread[NUM_THREAD];\n" - "\n" - "\tfor (i = 0; i < NUM_THREAD; i++) {\n" - "\t\tret = pthread_create(&thread[i], NULL, thread_alloc, NULL);\n" - "\t\tif (ret) {\n" - "\t\t\tperror(\"fail to create thread\\n\");\n" - "\t\t\treturn 1;\n" - "\t\t}\n" - "\t}\n" - "\n" - "\tscanf(\"%d\", &quit);\n" - "\tfor (i = 0; i < NUM_THREAD; i++)\n" - "\t\tpthread_join(thread[i], NULL);\n" - "\n" - "\tprintf(\"Test Done\\n\");\t\n" - "\treturn 0;\n" - } + "Minchan Kim\n" + "-------------- next part --------------\n" + "A non-text attachment was scrubbed...\n" + "Name: thp_alloc.c\n" + "Type: text/x-csrc\n" + "Size: 1328 bytes\n" + "Desc: not available\n" + URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140708/db0fab14/attachment.bin> -b0a6e7ab9868fb978c34c51a89742d05d699617211622de1760a274f30525985 +32131029844c7879211369fae0870ad84dfe9637b549f5495ccfcbf50ca1201c
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.