Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Skype 4.0 for Linux
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
piotr5
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2012
Posts: 117

PostPosted: Fri Dec 14, 2012 1:16 pm    Post subject: doesn't work anymore Reply with quote

I updated all packages and skype isn't working.

what I wanted is a nomultilib system with the single exception for skype (since it's statically linked against libc, there aren't many packages needed). now gcc has been recompiled with nomultilib and running skype reports it isn't an executable. ldd skype reports the same. only less claims it's a program. any possibility to restore how it was before? what's the emerge-command for re-installing the dependencies?
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Tue May 28, 2013 7:07 am    Post subject: constant CPU usage of skype Reply with quote

I've noticed, that version 4 of Skype constantly uses 2-3% of CPU. The strace
says that it runs in the loop repeating following actions:

Quote:

poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=12, events=POLLIN}], 4, 0) = 0 (Timeout)
recv(6, 0xf81c2748, 4096, 0) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {590735, 153181503}) = 0
recv(6, 0xf81c2748, 4096, 0) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {590735, 153226081}) = 0


Is this normal behavior, or maybe it's missing something that I should install?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue May 28, 2013 8:46 am    Post subject: Re: constant CPU usage of skype Reply with quote

v_andal wrote:
Is this normal behavior

It's normal for Skype, I get 2% CPU usage continually also. I assume it's trying to sabotage Linux battery life, because other apps such as Pidgin and Ekiga don't need 2% CPU when idle :evil:

There is/was a bug report in Skype's bugzilla, but I can't find it right now.
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Tue May 28, 2013 10:25 am    Post subject: Reply with quote

I guess, they check some mutexes this way :)

Ok, I guess I have to live with it. At least until time when all my contacts are ready to move to some other application.

Thank you.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Wed May 29, 2013 8:58 am    Post subject: Reply with quote

skype-4.1.0.20 continually gives 1.9% CPU usage for me. However, in terms of battery power it costs me 0.1-0.2 watts on top of a base load of around 9 watts (on my Lenovo Thinkpad X301).

(edited numbers)
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Fri Jun 28, 2013 11:41 pm    Post subject: Reply with quote

Back on Windows I investigated this with internal tools and traces revealed it was due to hidden Flash-based advertisements in Skype in that case; the same might be happening here, the poll / recv / time loop might be checking whether to load the next advertisement.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sat Jun 29, 2013 2:28 am    Post subject: Reply with quote

TomWij wrote:
Back on Windows I investigated this with internal tools and traces revealed it was due to hidden Flash-based advertisements in Skype in that case; the same might be happening here, the poll / recv / time loop might be checking whether to load the next advertisement.

Does the Linux version have ads? I don't see any. Are you speculating that this infrastructure is in the Linux version, and causing wakeups?
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sat Jun 29, 2013 2:51 am    Post subject: Reply with quote

No idea, these are merely speculations based on what I saw; I was blocking ad domains in a hosts file on our router, hence it being unable to load the advertisement and I saw a Flash process or thread spin up and a trace using Sysinternals Tools confirmed the Flash thread was trying to contact the domain. Here on Linux looking at its dynamic linking dependencies it doesn't appear to use Flash it on first sight, it could still possibly be packed in the binary but as far as I know I am not permitted to reverse engineer the binary. This weekend, I'll give it a spin and see what I can do that is acceptable per license...
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Jul 18, 2013 4:36 pm    Post subject: Reply with quote

I'm running skype-4.2.0.11 now. Ever since about 4.0.3 skype won't run unless I completely remove the ~/.Skype directory first. Then I enter my credentials and it runs fine until I close the program. But then when I run it again, it terminates with no message and nothing in .xsession-errors. I ran it under strace but didn't see anything striking. This is the end of what strace produces:
Code:
open("/tmp/qtsingleapp-homesl-96d8-3e8-lockfile", O_RDWR|O_CREAT|O_LARGEFILE|O_CLOEXEC, 0666) = 7
fcntl64(7, F_SETFD, FD_CLOEXEC)         = 0
fcntl64(7, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
fcntl64(7, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 8
fcntl64(8, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(8, {sa_family=AF_FILE, sun_path="/tmp/qtsingleapp-homesl-96d8-3e8"}, 110) = 0
getsockname(8, {sa_family=AF_FILE, NULL}, [2]) = 0
getpeername(8, {sa_family=AF_FILE, sun_path=@""}, [35]) = 0
getsockopt(8, SOL_SOCKET, SO_TYPE, [1], [4]) = 0
fcntl64(8, F_GETFL)                     = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
clock_gettime(CLOCK_MONOTONIC, {4148806, 910359861}) = 0
clock_gettime(CLOCK_MONOTONIC, {4148806, 910415452}) = 0
clock_gettime(CLOCK_MONOTONIC, {4148806, 910477498}) = 0
select(9, [8], [8], NULL, {5, 0})       = 1 (out [8], left {4, 999998})
rt_sigaction(SIGPIPE, {SIG_IGN, [], 0}, NULL, 8) = 0
write(8, "\0\0\0\6skype:", 10)          = 10
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
clock_gettime(CLOCK_MONOTONIC, {4148806, 911913505}) = 0
clock_gettime(CLOCK_MONOTONIC, {4148806, 911971674}) = 0
clock_gettime(CLOCK_MONOTONIC, {4148806, 912033355}) = 0
select(9, [8], [], NULL, {5, 0})        = 0 (Timeout)
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
close(8)                                = 0
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{"+\2\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recv(6, "\1\2\241\0\0\0\0\0\3\0\240\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0) = 32
recv(6, 0xf8f8e1e0, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(6, 0xf8f8e1e0, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{"O\2\2\0\1\0\300\4<\0\2\0\0\0\300\4+\0\1\0", 20}, {NULL, 0}, {"", 0}], 3) = 20
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recv(6, "\1\2\244\0\0\0\0\0\3\0\240\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0) = 32
recv(6, 0xf8f8e1e0, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(6, 0xf8f8e1e0, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
shutdown(6, SHUT_RDWR)                  = 0
close(6)                                = 0
time(NULL)                              = 1374164695
open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 6
read(6, "0-3\n", 8192)                  = 4
close(6)                                = 0
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
close(7)                                = 0
write(5, "@", 1)                        = 1
close(5)                                = 0
close(4)                                = 0
rt_sigaction(SIGCHLD, NULL, {0xf324d190, [], SA_NOCLDSTOP}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], 0}, NULL, 8) = 0
exit_group(0)                           = ?
+++ exited with 0 +++


Anyone have any idea?

TIA.
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Jul 18, 2013 4:39 pm    Post subject: Reply with quote

OK, maybe nevermind. I found an old lockfile in /tmp. I got rid of it and now skype seems to start OK.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum