Re: Top command issue in kernel 2.6.16 and some kernel 2.4.16



"karnan" <s_karnan@xxxxxxxxx> writes:

We have our application in user space and driver in kernel space.
There is block read to get the data from kernel space to user space.
When we use Top command to measure it show 0% for 60 seconds and 99%
for 30 seconds and it repeats. But my code should always take about
30% of CPU all the time because this works based on real time data
available from kernel driver. Can anybody help to understand why top
is showing 0% while I know that app should take about 30%. why is
showing 99%? Is there any area I need to look at for this 99%
occupancy?

We tested in both kernel 2.6 and 2.4. This issue happens in all
platform for kernel 2.6. In case of kernel 2.4, this happens only in
one platform. In other platform, tops shows correctly 30% all the
time.

Could anybody explain what could wrong here?

http://news.gmane.org/find-root.php?group=gmane.linux.kernel&article=492270
(esp. first reply)

Contains some information on why you might notice strange top(1) behavior.

--
vale
.



Relevant Pages

  • Re: Q on audit, audit-syscall: insecure?
    ... How does this audit method overcome the well known security ... audit time, and a second, different object is used when the kernel ... the user space buffer into the kernel space buffer which the kernel ... systems have been known to achieve CAPP and LSPP certification. ...
    (Linux-Kernel)
  • Re: Unexpected Error With CE.BIB file
    ... ways to get code to run in kernel mode, and you can only stop that by ... in user mode can't access kernel mode space, ... Anything running in kernel mode can access both user and kernel space. ... load dlls that are running in kernel mode. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Unexpected Error With CE.BIB file
    ... why to divide it as kernel space and user space? ... about the K flag, that only applies to developers building images. ... Anything running in kernel mode can access both user and kernel space. ... Move the component that loads hidparse into kernel space, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: few questions
    ... The Linux operating system is divided via memory protection hardware on ... the cpu into two general classes: kernel space and user space. ...
    (comp.os.linux.development.apps)
  • Re: Unexpected Error With CE.BIB file
    ... runs in kernel mode which corrupts the kernel ... in user mode can't access kernel mode space, ... Anything running in kernel mode can access both user and kernel space. ... Move the component that loads hidparse into kernel space, ...
    (microsoft.public.windowsce.platbuilder)