Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

High CPU usage for displaying/editing (parts of) large relations #2893

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: bernd[at]bzed.de
[Submitted to the original trac issue database at 9.37am, Sunday, 18th April 2010]

Merkaartor eats a lot of CPU when (parts of) large relations are displayed, this makes it almost unusable in these areas. A good example is the 'Hunsrckhhenstrasse'=relation, which goes trough Kastellaun.

@openstreetmap-trac
Copy link
Author

Author: bernd[at]bzed.de
[Added to the original trac issue at 10.41am, Sunday, 18th April 2010]

Kastellaun is here: http://osm.org/go/0Dclm9Si--?layers=0B00FTF

@openstreetmap-trac
Copy link
Author

Author: bernd[at]bzed.de
[Added to the original trac issue at 8.30am, Monday, 19th April 2010]

Whenever merkaartor eats CPU time, it seems just to be waiting on something:

poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}], 2, 5390) = 1 ([{fd=7, revents=POLLIN}])
read(7, "\34\0q\222B\1\0\0F\1\0\0\4\22O\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 64
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}], 2, 4894) = 1 ([{fd=7, revents=POLLIN}])
read(7, "\34\0q\222B\1\0\0F\1\0\0\32$O\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 64
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}], 2, 263) = 0 (Timeout)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}], 2, 0) = 0 (Timeout)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=7, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=7, revents=POLLOUT}])
writev(7, [{"\227\7\2\0\366\23\0\0036\1\2\0\365\23\0\3\227\7\2\0\371\23\0\0036\"\2\0\370\23\0\3"..., 128}, {NULL, 0}, {"", 0}], 3) = 128
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}], 2, 9999) = 1 ([{fd=7, revents=POLLIN}])
read(7, "x\0\201\222B\1\0\0\16\0\300\1\1\0\0\0\177&O\6\177&O\6\0\0\0\0\0\0\0\0", 4096) = 32
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0xb01704, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)

Unfortunately I did not yet figure out for what.
I'm able to reproduce it easily by opening http://devel.recluse.de/~bzed/cpu_eater.mdc

@openstreetmap-trac
Copy link
Author

Author: Koying
[Added to the original trac issue at 6.10pm, Monday, 24th May 2010]

I think this one was solved. Please reopen otherwise

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant