cobbler/cobbler — Issue #37: get_latest_task_info() consumes a lot of server cpu
Author: opoplawski
Created: 2011-12-27 18:31:04+00:00
State: open

get_latest_task_info() ends up consuming a fair amount of cpu on my (admittedly old) server. I'm wondering if there is any way to reduce this load? One thing I noticed with strace is that it calls recv() a lot with 1 byte buffers:

connect(49, {sa_family=AF_INET, sin_port=htons(25151), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
send(49, "POST /RPC2 HTTP/1.0\r\nHost: 127.0"..., 147, 0) = 147
send(49, "\n