lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 31 Jul 2012 14:14:01 -0500
From:	Robert Engels <rengels@...ionscity.com>
To:	netdev@...r.kernel.org
Subject: cpu usage on blocking network call

I have a strange problem, and was hoping the developers could provide
some insight.

I have tested with ubuntu 12.04, with the 3.2.0-23 lowlatency kernel.
I also tested with a 3.0.31 vanilla realtime kernel on a different
machine.

I open a blocking socket (and connect to a remote client), and start
two threads, a reader and a writer.

I pump LOTS of data down the writer, but do not receive any data on
the reader (by design).

The reader thread is reporting some CPU usage (not a lot, about 10% of
the writer cpu). I determine this using "top", and other profiling
tools.

I also run strace on the thread, and it shows that it is blocked in
read() call, and that is doesn't return.

Why/How is the reader thread consuming CPU? Poorly written driver?
Kernel bug? Or is this expected behavior or the kernel?

I am more than willing to spend more time tracking it down in the
kernel, but I'd like some direction.

--

Robert Engels
OptionsCity Software Inc.
Chicago, IL
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ