linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] increase pipe size/buffers/atomicity :D
@ 2010-04-08  1:38 brian
  2010-04-08  5:11 ` Eric Dumazet
  2010-04-08 15:14 ` Steven J. Magnani
  0 siblings, 2 replies; 4+ messages in thread
From: brian @ 2010-04-08  1:38 UTC (permalink / raw)
  To: linux-kernel

(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) */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-09 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08  1:38 [PATCH] increase pipe size/buffers/atomicity :D brian
2010-04-08  5:11 ` Eric Dumazet
2010-04-08 15:14 ` Steven J. Magnani
2010-04-09 19:50   ` Brian Haslett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).