[GRASS-dev] rast_open_new() saturates after opening 127 temporary files

Glynn Clements glynn at gclements.plus.com
Tue May 28 20:06:26 PDT 2013

Yann Chemin wrote:

> Linux: Ubuntu 13.04
> ulimit: open files                      (-n) 1024

In which case, that isn't the problem.

What type of filesystem are you using? ext2 has a limit of 32768
subdirectories, increased to 64000 in ext4. I know that btrfs has a
rather low limit on the number of hard links (which normally
determines the maximum number of subdirectories, as each
subdirectory's ".." entry is a hard link to its parent).

> indeed:
> ulimit -n unlimited
> bash: ulimit: open files: cannot modify limit: Operation not permitted

You can't increase a soft limit above the corresponding hard limit,
and you can't increase a hard limit unless you're root (and sudo won't
work because the limits are per-process, so ulimit has to be a shell
built-in). On a system which uses PAM, the limits are normally set on
login based upon the contents of /etc/security/limits.conf.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list