add linux-2.6-550-raise-default-nfile-ulimit.patch
S.Çağlar Onur [Thu, 29 Apr 2010 18:20:02 +0000 (18:20 +0000)]
kernel.spec
linux-2.6-550-raise-default-nfile-ulimit.patch [new file with mode: 0644]

index 78959c2..a61839f 100644 (file)
@@ -1862,6 +1862,7 @@ Patch90524: linux-2.6-524-peercred.patch
 Patch90525: linux-2.6-525-sknid-elevator.patch
 Patch90530: linux-2.6-530-built-by-support.patch
 Patch90540: linux-2.6-540-oom-kill.patch
+Patch90550: linux-2.6-550-raise-default-nfile-ulimit.patch
 
 # empty final patch file to facilitate testing of kernel patches
 Patch99999: linux-kernel-test.patch
@@ -3491,6 +3492,7 @@ ApplyPatch linux-2.6-524-peercred.patch
 ApplyPatch linux-2.6-525-sknid-elevator.patch
 ApplyPatch linux-2.6-540-oom-kill.patch
 ApplyPatch linux-2.6-530-built-by-support.patch
+ApplyPatch linux-2.6-550-raise-default-nfile-ulimit.patch
 
 ApplyOptionalPatch linux-kernel-test.patch
 
diff --git a/linux-2.6-550-raise-default-nfile-ulimit.patch b/linux-2.6-550-raise-default-nfile-ulimit.patch
new file mode 100644 (file)
index 0000000..874429d
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/include/linux/fs.h b/include/linux/fs.h
+index 22ff9cd..e082c37 100644
+--- a/include/linux/fs.h
++++ b/include/linux/fs.h
+@@ -21,7 +21,7 @@
+ /* Fixed constants first: */
+ #undef NR_OPEN
+-#define INR_OPEN 1024         /* Initial setting for nfile rlimits */
++#define INR_OPEN 4096         /* Initial setting for nfile rlimits */
+ #define BLOCK_SIZE_BITS 10
+ #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)