Re: top under 5.3-RELEASE

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 11/29/04

  • Next message: Frode Nordahl: "Got rid of my SiI3112A"
    Date: Mon, 29 Nov 2004 14:54:08 -0600
    To: Julian Elischer <julian@elischer.org>
    
    

    In the last episode (Nov 29), Julian Elischer said:
    > Dan Nelson wrote:
    > >The values should total up better when you have processes that hang
    > >around a bit more. There was a regression in 5.3's libpthreads that
    > >can make it report 0 CPU, so if you have some CPU-hungry threaded
    > >programs, they may not show up in top at all even though they're
    > >using 100% cpu. libthr and libc_r report CPU correctly.
    >
    > As background, libpthread assigns user threads to arbitrary kernel
    > threads "as needed". The trouble is that if a user thread comes into
    > the kernel, uses a kernel thread, and then exits the kernel and
    > another user thread does the same, where can we store the info about
    > the first thread? We have no place to store this info in
    > libpthreads.. at least not in a form useful to 'top' and 'ps'.

    Can you just add the stats to the primary kse (the one with id==pid)?
    That's always around as long as the process exists afaik. Any thread
    would do, since you can't guarantee that a thread will use the same kse
    twice anyway. What's annoying is seeing a CPU-bound threaded app
    (mysql or java, for example) showing 0 %CPU in top/ps but the TIME
    column incrementing 1 per second...

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Frode Nordahl: "Got rid of my SiI3112A"

    Relevant Pages

    • [2.6 patch] typo fixes: occuring -> occurring
      ... -STORE B, STORE C} all occuring before the unordered set of {STORE D, STORE E ... All other faults represent errors in the ... kernel and should generate an OOPS. ... Luckily the kernel only validly references user ...
      (Linux-Kernel)
    • Re: Making a time structure associated with the directory structure
      ... > with some modules which uses encryption to store time stamps of the access ... > stamps,be he root or not.The data will be accessible only from root account ... the clients have root access to the boot partition, ... kernel in there, and set grub.conf to boot that with a USB stick as the ...
      (Fedora)
    • Re: For the AdaOS folks
      ... but networking should be known to the kernel as something it can work ... Warren and I agreed on hooks for networking. ... A distributed store is identified by a number that is ...
      (comp.lang.ada)
    • Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
      ... From the kernel, yes, that's been long planned. ... The kernel source code is an inappropriate place to store random hex ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.16-rc5: known regressions [TP 600X S3, vanilla DSDT]
      ... This kernel hung on the first sleep, ... wouldn't hang. ... on the first sleep, but only the first time I booted it. ... Store, HMAD) ...
      (Linux-Kernel)