summaryrefslogtreecommitdiff
path: root/filesystems
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2011-10-25 08:34:28 +0000
committermanu <manu@pkgsrc.org>2011-10-25 08:34:28 +0000
commitb528911f93ecf915765556f42b631ab567541581 (patch)
tree8890f1360dbf0e0fd995b605b392eef13351ad44 /filesystems
parent88d3efa352ec90dd3c9198dacbced35ffe272685 (diff)
downloadpkgsrc-b528911f93ecf915765556f42b631ab567541581.tar.gz
glusterfs memory usage can grow quite large when using a lot of vnodes,
and the amount of data memory involved is not easy to forcast. We therefore raise the limit to the maximum. Patch from Manuel Bouyer. It helps completing a cvs update on a glusterfs volume.
Diffstat (limited to 'filesystems')
-rw-r--r--filesystems/glusterfs/Makefile4
-rw-r--r--filesystems/glusterfs/distinfo3
-rw-r--r--filesystems/glusterfs/patches/patch-bx18
3 files changed, 22 insertions, 3 deletions
diff --git a/filesystems/glusterfs/Makefile b/filesystems/glusterfs/Makefile
index 98c91651561..d66550e89b1 100644
--- a/filesystems/glusterfs/Makefile
+++ b/filesystems/glusterfs/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2011/10/16 05:45:19 manu Exp $
+# $NetBSD: Makefile,v 1.20 2011/10/25 08:34:28 manu Exp $
#
DISTNAME= glusterfs-3.2.3
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= filesystems
MASTER_SITES= http://download.gluster.com/pub/gluster/glusterfs/3.2/3.2.3/
diff --git a/filesystems/glusterfs/distinfo b/filesystems/glusterfs/distinfo
index f67eb9c0aa0..d18ed1eadc7 100644
--- a/filesystems/glusterfs/distinfo
+++ b/filesystems/glusterfs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2011/10/16 05:45:19 manu Exp $
+$NetBSD: distinfo,v 1.16 2011/10/25 08:34:28 manu Exp $
SHA1 (glusterfs-3.2.3.tar.gz) = 7a36e496d9ac3fbf11123bb42884445334d07f06
RMD160 (glusterfs-3.2.3.tar.gz) = 89d6a5f9c1362e1fe4d88e69465311069552d319
@@ -32,3 +32,4 @@ SHA1 (patch-bt) = 58f8e5ce66e6b691dd9972bd649dc18f7d5a258a
SHA1 (patch-bu) = 006a6802958fad3950eadad456e362b7f4c2ca4a
SHA1 (patch-bv) = 2c3b654e5858bf0948307ca6ae7048e276fca9ef
SHA1 (patch-bw) = dca12eb81163fd1a0ada13165e990ddcb8fefbf2
+SHA1 (patch-bx) = b2aca473091bb64d14c6da046379d33ca8a5785e
diff --git a/filesystems/glusterfs/patches/patch-bx b/filesystems/glusterfs/patches/patch-bx
new file mode 100644
index 00000000000..068cedd55d9
--- /dev/null
+++ b/filesystems/glusterfs/patches/patch-bx
@@ -0,0 +1,18 @@
+$NetBSD: patch-bx,v 1.1 2011/10/25 08:34:28 manu Exp $
+
+glusterfs may need lots of data, raise the limit and hope there's enough
+ram ...
+
+--- glusterfsd/src/glusterfsd.c.orig 2011-08-23 14:31:37.000000000 +0200
++++ glusterfsd/src/glusterfsd.c 2011-10-19 15:28:44.000000000 +0200
+@@ -1008,6 +1008,10 @@
+ lim.rlim_cur = RLIM_INFINITY;
+ lim.rlim_max = RLIM_INFINITY;
+ setrlimit (RLIMIT_CORE, &lim);
++ if (getrlimit(RLIMIT_DATA, &lim) == 0) {
++ lim.rlim_cur = lim.rlim_max;
++ setrlimit(RLIMIT_DATA, &lim);
++ }
+
+ return 0;
+ }