Re: High CPU usage in kernel on highly contended lock file

2017-09-01 Thread Konstantin Belousov
On Fri, Sep 01, 2017 at 06:21:00PM +0300, Paul wrote: > > It seems that a lot of CPU resources are spend when trying to get exclusive > lock on file from multiple processes concurrently. By multiple i mean > hundreds. > It seems that there's an initial cost of fcntl() call. Each process that >

High CPU usage in kernel on highly contended lock file

2017-09-01 Thread Paul
It seems that a lot of CPU resources are spend when trying to get exclusive lock on file from multiple processes concurrently. By multiple i mean hundreds. It seems that there's an initial cost of fcntl() call. Each process that tries to lock the file consumes some amount of CPU and cools down.