search for: rlimit_nofile

Displaying 20 results from an estimated 39 matches for "rlimit_nofile".

2009 Sep 14
1
about ulimit -n 1M
...-09-14 09:15:22] W [client-protocol.c:6010:init] brick-0-0-0: WARNING: Failed to set 'ulimit -n 1M': Operation not permitted When I run it with root, there's no such complaint even though /proc/sys/fs/file-max shows a value of 65536. For normal user, it seems the default maximum of RLIMIT_NOFILE is 4096, which is a much smaller value than that is required by glusterfs. I'm wondering what's the impact of RLIMIT_NOFILE has to the performance and scalability of glusterfs. Does glusterfs in deed needs to open a large number of files when my DHT aggregates ~100 machines and ~500 v...
2005 Nov 11
0
Re: samba smbd version 2.2.12 HP CIFS Server A.01.11.04 does hang if start in a HP serviceguard configuration
...e is locate in >a path which is a NFS share smbd hangs. >I have traced the samba startup with tusc. >Here are the last line: >... >... >.. > >1126617678.351198 [9241] write(6, " m a x c o n n e c t i o n ".., 34) = 34 >1126617678.351357 [9241] getrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.351488 [9241] setrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.351596 [9241] setrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.351677 [9241] getrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.352612 [9241] open("/disks/usrd20/samba/secret...
2012 Jul 02
1
rlimit sandbox on cygwin
...11 @@ ssh_sandbox_child(struct ssh_sandbox *bo rl_zero.rlim_cur = rl_zero.rlim_max = 0; +#ifndef SANDBOX_SKIP_RLIMIT_FSIZE if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) fatal("%s: setrlimit(RLIMIT_FSIZE, { 0, 0 }): %s", __func__, strerror(errno)); +#endif if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) fatal("%s: setrlimit(RLIMIT_NOFILE, { 0, 0 }): %s", __func__, strerror(errno)); -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experi...
2014 Feb 21
1
[PATCH] Fix configure warning on FreeBSD
...portable/commit/5860048c64fd41005697473d4985efa454a191c5.patch Thanks! Bryan Drewery -------------- next part -------------- commit 5860048c64fd41005697473d4985efa454a191c5 Author: Bryan Drewery <bryan at shatow.net> Date: Fri Feb 21 09:08:41 2014 -0600 Remove stray ], in SANDBOX_SKIP_RLIMIT_NOFILE AC_DEFINE diff --git configure.ac configure.ac index 0dd3f45..3e522e5 100644 --- configure.ac +++ configure.ac @@ -785,7 +785,7 @@ mips-sony-bsd|mips-sony-newsos4) # Preauth crypto occasionally uses file descriptors for crypto offload # and will crash if they cannot be opened. AC_DEFINE([SAN...
2001 Feb 08
0
openssh2.3.0p1 and /etc/limits
...2048 N5') + * where: + * [Aa]: a = RLIMIT_AS max address space (KB) + * [Cc]: c = RLIMIT_CORE max core file size (KB) + * [Dd]: d = RLIMIT_DATA max data size (KB) + * [Ff]: f = RLIMIT_FSIZE Maximum filesize (KB) + * [Mm]: m = RLIMIT_MEMLOCK max locked-in-memory address space (KB) + * [Nn]: n = RLIMIT_NOFILE max number of open files + * [Rr]: r = RLIMIT_RSS max resident set size (KB) + * [Ss]: s = RLIMIT_STACK max stack size (KB) + * [Tt]: t = RLIMIT_CPU max CPU time (MIN) + * [Uu]: u = RLIMIT_NPROC max number of processes + * [Ll]: l = max number of logins for this user + * [Pp]: p = process priorit...
2004 Dec 08
3
Asterisk 1.0.1 Too many open files
My asterisk process produced the following errors this morning: Dec 8 10:44:07 WARNING[50315282]: rtp.c:829 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:2352 sip_alloc: Unable to create RTP session: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:8024 sip_request: Unable to build sip pvt data for
2015 Jan 22
2
[PATCH] increase fd_limit to max_client_limit automatically
...limit) == 0 && - fd_limit < (rlim_t)max_client_limit) { - i_warning("fd limit (ulimit -n) is lower than required " - "under max. load (%u < %u), because of %s", - (unsigned int)fd_limit, max_client_limit, - max_client_limit_source); + if (getrlimit(RLIMIT_NOFILE, &fd_limit) == 0) { +#ifdef HAVE_SETRLIMIT + rlim_t old = fd_limit.rlim_cur; + fd_limit.rlim_cur = I_MAX(old, max_client_limit); + if (setrlimit(RLIMIT_NOFILE, &fd_limit) < 0) + fd_limit.rlim_cur = old; +#endif + if (fd_limit.rlim_cur < (rlim_t)max_client_limit) + i_warning(&q...
2001 Sep 24
2
URGENT REPOST: Maximum number of fil
Hi Joel, We essentially have the following directory structure: /images/yyyy/mm/dd/nn For each day of the year we get in the region of 120,000 images, which are split down into 100 subdirectories to prevent their being too many files in one directory. The directory /images is shared out as follows: [images] comment = Imaging Files path = /images public = yes writable = yes
1999 Aug 26
0
smbsh always segfaults
...19091}, NULL) = 0 getpid() = 32326 stat("/tmp/smbw.syo6J5", 0xbfffe6dc) = -1 ENOENT (No such file or directory) open("/tmp/smbw.syo6J5", O_RDWR|O_CREAT|O_TRUNC|O_EXCL|0x8000, 0) = 5 unlink("/tmp/smbw.syo6J5") = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 dup2(5, 1024) = -1 EBADF (Bad file descriptor) dup2(5, 1023) = 1023 close(5)...
2005 Nov 13
2
RE: samba smbd version 2.2.12 HP CIFS Server A.01.11.04 does hang if start in a HP serviceguard configuration
...d file is locate in >a path which is a NFS share smbd hangs. >I have traced the samba startup with tusc. >Here are the last line: >... >... >.. > >1126617678.351198 [9241] write(6, " m a x c o n n e c t i o n ".., 34) = 34 >1126617678.351357 [9241] getrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.351488 [9241] setrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.351596 [9241] setrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.351677 [9241] getrlimit64(RLIMIT_NOFILE, 0x7f7f0ca0) = 0 >1126617678.352612 [9241] open("/disks/usrd20/samba/secret...
2011 Jun 23
1
sandbox for OS X
Hi, The systrace and rlimit sandboxes have been committed and will be in snapshots dated 20110623 and later. This diff adds support for pre-auth privsep sandboxing using the OS X sandbox_init(3) service. It's a bit disappointing that the OS X developers chose such as namespace-polluting header and function names "sandbox.h", "sandbox_init()", etc. It already forced me to
2004 Aug 06
1
icecast 1.3.10 problems
> First, src/vsnprintf.[ch] where not added to cvs, version checked out > off CVS does not build. You're right. I forgot to cvs add them. They are now in the repository. > Second, src/main.c *still* does not build on Linux 2.4.x based systems - > it is necessary to #include <sys/resource.h> somewhere. I could have sworn that I have the 2.4 headers installed on this
2004 Jul 30
2
Too many open files with test32
...The problem is not specific to this mailbox. I hadn't this problem with the stable releases and I've also not set any special limits for the dovecot processes. I'm using a grsec pathed kernel (linux 2.6.7), the kern log says: grsec: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by /usr/local/libexec/dovecot/imap[imap:19114] uid/euid:1011/1011 gid/egid:448/448, parent /usr/local/sbin/dovecot[dovecot:7799] uid/euid:0/0 gid/egid:0/0 Does dovecot really need more then 1024 filedescriptors or is it a bug? If you need more information just ask. best regard...
2002 Jun 26
0
[Bug 301] New: In openssh 3.3 and 3.4 pam session seems be called from non-root
...483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_CORE, {rlim_cur=50000*1024, rlim_max=50000*1024}) = -1 EPERM (Operation not permitted) 11860 setrlimit(RLIMIT_RSS, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_NPROC, {rlim_cur=257, rlim_max=257}) = 0 11860 setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 11860 setrlimit(RLIMIT_MEMLOCK, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_AS, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(0xa /* RLIMIT_??? */, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setpriority(PRI...
2020 Aug 23
0
MultiDatabase shard count limitations
...; thread from > February 2020, I've got 390 Xapian shards for 130 public inboxes > I want to search against(*). There's more on the horizon (we're > expecting tens of thousands of public inboxes). Was that "(*)" meant to have a matching footnote? > After bumping RLIMIT_NOFILE and running ->add_database a bunch, > the actual queries seem to be taking ~30s (not good :x). > > Now I'm thinking, MultiDatabase isn't the right way to go about > this... I'm not aware of anyone who's tried to use that many shards before, so it might be you're...
2002 Jul 11
1
Samba 2.2.5 on PS2-Linux (mips) - can't start smbd
...t? Any ideas where else to look? Full details from the log file follow... Simon [2002/07/11 10:06:16, 2] lib/interface.c:add_interface(81) added interface ip=192.168.3.35 bcast=192.168.3.255 nmask=255.255.255.0 [2002/07/11 10:06:16, 3] lib/util.c:set_maxfiles(1639) set_maxfiles: setrlimit for RLIMIT_NOFILE for 10010 max files failed with error Operation not permitted [2002/07/11 10:06:16, 1] smbd/files.c:file_init(165) file_init: Information only: requested 10000 open files, 1014 are available. [2002/07/11 10:06:16, 3] smbd/server.c:main(747) loaded services [2002/07/11 10:06:16, 3] smbd/server....
2017 Apr 20
1
[PATCH] tests: Replace test-max-disks with several tests.
...it (EXIT_FAILURE); + guestfs_close (g); + + exit (EXIT_SUCCESS); +} + +/** + * Work out the maximum number of disks that could be added to the + * libguestfs appliance, based on these factors: + * + * =over 4 + * + * =item the current backend + * + * =item the max number of open file descriptors (RLIMIT_NOFILE) + * + * =back + */ +static ssize_t +get_max_disks (guestfs_h *g) +{ + ssize_t ret; + struct rlimit rlim; + /* We reserve a little bit of "headroom" because qemu uses more + * file descriptors than just the disk files. + */ + const unsigned fd_headroom = 32; + + ret = guestfs_max...
2002 May 14
1
AIX capabilities not set
Hi, we're in the process of setting up large-page support on IBM regattas, but for large-page support the users have to have a set of extra capabilities (CAP_BYPASS_RAC_VMM,CAP_PROPAGATE). This are configured on a per user basis by listing which capability each user have in /etc/security/user. Unfortunately they don't get set when the users log in via OpenSSH (3.1p1). Does anybody know
2007 Dec 14
1
SLow cups printing, lots of get-printer-attributes
...15:47:40 send(27, "\1\1\0\v\0\0\0\1\1G\0\22attributes-charset\0\niso-8859-1H\0\33attributes-natural-language\0\5en-usE\0\vprinter-uri\0\31ipp:///printers/5000-001BB\0\24requested-attributes\0\fprinter-nameB\0\0\0\fprinter-infoB\0\0\0\20printer-location\3", 196, 0) = 196 15:47:40 getrlimit(RLIMIT_NOFILE, {rlim_cur=10020, rlim_max=10020}) = 0 15:47:40 select(28, [27], NULL, NULL, {1, 0}) = 1 (in [27], left {1, 0}) 15:47:40 recv(27, "HTTP/1.1 100 Continue\r\n\r\n", 2048, 0) = 25 15:47:40 time(NULL) = 1197643660 15:47:40 time(NULL) = 1197643660 15:47:...
2004 Aug 06
4
reencode scripts if anyone is interested
On Monday, 25 June 2001 at 15:23, Michael Smith wrote: > > >Future plans include sending different streams to different servers > >(not just different mountpoints), and handling PCM/WAV input... > > Hey, you're taking over all the plans for ices2, damn you! :-) any more good ideas I may have missed? ;) > Actually, ices2 does much of this already. I want to add