file locks in 2.4.18

file locks in 2.4.18

Post by Stephan von Krawczynsk » Wed, 29 May 2002 23:40:10



Hello,

what is the preferred way to increase the maximum number of locks per file in
2.4.18 (and above :-)? Is this fs-type-dependant? My concern is reiserfs 3.6. I
found out the hard way that there is a max of around 128 currently...

Regards,
Stephan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

file locks in 2.4.18

Post by Stephen Rothwel » Thu, 30 May 2002 12:00:07


Hi Stephan,


Quote:

> what is the preferred way to increase the maximum number of locks per
> file in 2.4.18 (and above :-)? Is this fs-type-dependant? My concern is
> reiserfs 3.6. I found out the hard way that there is a max of around 128
> currently...

Are you referring to fcntl locks?  If so what are the symptoms of not
being able to get a lock?  As far as I am aware, there should be no limit
on the number of locks per file (except memory, of course).  There is a
per process limit on the number of file locks, but it is infinite by default.

The file system can place restrictions on file locking, but I am
pretty sure that reiserfs does not.
--
Cheers,

http://www.canb.auug.org.au/~sfr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/