[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: High CPU usage with v1.8

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: Tue, 8 Jul 2014 21:50:43 +0200

Hi,

On Thu, Jul 3, 2014 at 3:52 PM, André Ziegler <MagicAndre1981_at_live.com> wrote:
> your CPU usage comes from libapr_tsvn.dll!impl_pollset_poll which is called by TortoiseProc.exe!SVN::List, TortoiseProc.exe!SVNReadProperties::SVNReadProperties and TortoiseProc.exe!CAppUtils::BrowseRepository.
>
> https://dl.dropboxusercontent.com/u/5749744/Bilder/Foren/tortoisesvn.tigris.org/glozanomoran_1.png
>
> https://dl.dropboxusercontent.com/u/5749744/Bilder/Foren/tortoisesvn.tigris.org/glozanomoran_2.png
>
> https://dl.dropboxusercontent.com/u/5749744/Bilder/Foren/tortoisesvn.tigris.org/glozanomoran_3.png
>
> The next calls are Network activaty from Windows Sockets (ws2_32.dll!select) and other Windows calls.

what happens in this code is that serf calls select in a very tight
loop in svn_ra_serf__context_run_wait(). It should be waiting for a
HTTP response to arrive from the server. Normally that happens without
using much CPU time.

The question here is where that CPU time is spent? Can anyone tell me
from the performance trace how many times select() gets called?

Serf calls select with a timeout of 500ms. So either that time is
spent in select() waiting for half a second, or select returns
immediately and is called again in a tight loop.
I suppose it's the latter scenario, the question then is why select
exits immediately without returning any data?
David: is anything interfering with your network stack? Any virus
scanners or proxy servers installed?

L.

> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3084478
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3084785

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-07-08 21:54:11 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.