lkml.org 
[lkml]   [2010]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH] increase pipe size/buffers/atomicity :D
    From
    (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) */

    \
     
     \ /
      Last update: 2010-04-08 03:41    [W:4.007 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site