Operating System - Linux
1748261 Members
3509 Online
108760 Solutions
New Discussion юеВ

Re: File Lock Kernel Param

 
Kim Kendall
Regular Advisor

File Lock Kernel Param

Anybody know where this kernel param can be changed?

" File Lock (flck) "
7 REPLIES 7
Kim Kendall
Regular Advisor

Re: File Lock Kernel Param

The reason I ask is attached:
Claudio Cilloni
Honored Contributor

Re: File Lock Kernel Param

give a look at /proc.

I don't know this param, but I found these files:

/proc/sys/fs/file-max
/proc/sys/fs/file-nr

maybe these are what you're serching for. or the file corresponding this parameter is located somewhere else in /proc ;-)

you can change them so:

echo {value} >/proc/sys/fs/file-max

hth

Claudio
Kim Kendall
Regular Advisor

Re: File Lock Kernel Param

I kinda figured it would be under /proc somewhere.

I looked under /proc/sys/kernel and looked for "168" (egrep 168 *)

nothing... So I'm still looking for where this parameter can be tweaked.
Kim Kendall
Regular Advisor

Re: File Lock Kernel Param

Perhaps the linux glance folks can tell me... is the value obtained through a formula of a couple other parameters? The docs included dont tell me.

System Table Available Used Utilization High(%)
--------------------------------------------------------------------------------
...
...
File Lock (flck) 168 168 100 100
Claudio Cilloni
Honored Contributor

Re: File Lock Kernel Param

I could be useful understand what thar 'flck' parameter means. Does glance documentation say something about it?

Searching in my system (RH 7.3), I found a command named 'lslk', that shows the local file locks.
Maybe it shows exactly 168 file locks, and the list shown could give you an idea of the reason why that value is so high.

I haven't glance, so I can't see if there's a relationship between lslk output and the flck value that glance shows.

C
Kim Kendall
Regular Advisor

Re: File Lock Kernel Param

Here is the info from the metrics.txt file that is included in the glance download. Not a word about "where" this data comes from.

Dear HP,
I still need to know....
Kim Kendall
Regular Advisor

Re: File Lock Kernel Param

The man page for 'lockf' refers to the lock table in the "ERRORS" section:

Error : ENOLCK
Too many segment locks open, lock table is full.

So... It's being looked at by glance, but which kernel parameter is it?