Too much system cpu usage

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
sadface
Posts: 3
Joined: Wed Nov 18, 2009 4:39 pm

Too much system cpu usage

Post by sadface »

I noticed that symptom on my x86 linux machine running transmission-daemon.

OProfile and strace tools showed me the guilty: thousands of time() syscalls per second combined with a "slow" kernel high-resolution timer (ACPI PM timer). In these conditions every time() syscall wastes from 5 to 6 usecs and system cpu time is as high as user cpu time!

Fortunately, most of time() syscalls seem not to be needed (I hope so :wink: ).
My simple patch: http://pastie.org/704420
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Too much system cpu usage

Post by Jordan »

Headcase_Fargone
Posts: 17
Joined: Fri Nov 06, 2009 1:39 pm

Re: Too much system cpu usage

Post by Headcase_Fargone »

Now I really can't wait for 1.80, heh.
Post Reply