Messages in this thread Patch in this message | | | Date | Wed, 7 Apr 2010 19:38:32 -0600 | Subject | [PATCH] increase pipe size/buffers/atomicity :D | From | brian <> |
| |
(tested and working with 2.6.32.8 kernel, on a Athlon/686)
--- include/linux/pipe_fs_i.h.orig 2010-04-06 22:56:51.000000000 -0500 +++ include/linux/pipe_fs_i.h 2010-04-06 22:56:58.000000000 -0500 @@ -3,7 +3,7 @@
#define PIPEFS_MAGIC 0x50495045
-#define PIPE_BUFFERS (16) +#define PIPE_BUFFERS (32)
#define PIPE_BUF_FLAG_LRU 0x01 /* page is on the LRU */ #define PIPE_BUF_FLAG_ATOMIC 0x02 /* was atomically mapped */ --- include/asm-generic/page.h.orig 2010-04-06 22:57:08.000000000 -0500 +++ include/asm-generic/page.h 2010-04-06 22:57:23.000000000 -0500 @@ -12,7 +12,7 @@
/* PAGE_SHIFT determines the page size */
-#define PAGE_SHIFT 12 +#define PAGE_SHIFT 13 #ifdef __ASSEMBLY__ #define PAGE_SIZE (1 << PAGE_SHIFT) #else --- include/linux/limits.h.orig 2010-04-06 22:54:15.000000000 -0500 +++ include/linux/limits.h 2010-04-06 22:56:28.000000000 -0500 @@ -10,7 +10,7 @@ #define MAX_INPUT 255 /* size of the type-ahead buffer */ #define NAME_MAX 255 /* # chars in a file name */ #define PATH_MAX 4096 /* # chars in a path name including nul */ -#define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */ +#define PIPE_BUF 8192 /* # bytes in atomic write to a pipe */ #define XATTR_NAME_MAX 255 /* # chars in an extended attribute name */ #define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */ #define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */
| |