Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbtracemgr loads CPU up to ~55% when no activity is present [CORE3770] #4114

Closed
firebird-issue-importer opened this issue Feb 21, 2012 · 7 comments

Comments

@firebird-issue-importer

Submitted by: @pavel-zotov

LI-V2.5.1.26308

when fbtracemgr is launched (w/o any output of watching info) it loads CPU up to 52-57%
First rows of of `top` in my case:

-bash-4.1$ top
top - 00:15:19 up 25 days, 10:55, 6 users, load average: 2.68, 1.83, 0.90
Tasks: 388 total, 1 running, 387 sleeping, 0 stopped, 0 zombie
Cpu(s): 10.8%us, 5.5%sy, 0.0%ni, 79.3%id, 4.0%wa, 0.0%hi, 0.4%si, 0.0%st
Mem: 16467720k total, 16377168k used, 90552k free, 4028k buffers
Swap: 16383992k total, 343412k used, 16040580k free, 13045100k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30122 root 20 0 192m 36m 20m S 70.0 0.2 5:01.46 fb_inet_server
30434 firebird 20 0 153m 8352 6144 S 52.7 0.1 0:18.32 fbtracemgr
27616 root 20 0 262m 38m 21m S 1.0 0.2 0:05.05 fb_inet_server
30950 root 20 0 230m 72m 23m S 0.7 0.5 5:46.64 fb_inet_server

---------
[firebird@firebird firebird]$ uname -a
Linux firebird 2.6.33.3-85.fc13.x86_64 #⁠1 SMP Thu May 6 18:09:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

[firebird@firebird firebird]$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 128524
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 16384
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Commits: 6080eec 645c412

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 22, 2012

Modified by: @dyemanov

Component: TRACEMGR [ 10140 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 22, 2012

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 22, 2012

Commented by: @AlexPeshkoff

The bug used to happen due to incorrectly calculated timeout for sem_timedwait().

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 27, 2012

Modified by: @AlexPeshkoff

summary: fbtracemgr loads CPU up to ~55% after any query in isql is finished => fbtracemgr loads CPU up to ~55% when no activity is present

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 27, 2012

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.2 [ 10450 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 23, 2013

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 13, 2015

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Cannot be tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants