many threads using utime()--daemon consuming more 25% cpu - Unix

This is a discussion on many threads using utime()--daemon consuming more 25% cpu - Unix ; Hi, I have generated below gcore for a daemon consuming more than 25% Let me know why so many threads are using utime() #0 0xff19c4d4 in _sockconfig () from /usr/lib/libc.so.1 #1 0x0001b94c in Tcp_receive (port_no=9900) at /tmp/arti/ ArmorServer_NonERACOM//armorsrc/create_thread.c:266 #2 0x0001b5dc ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: many threads using utime()--daemon consuming more 25% cpu

  1. many threads using utime()--daemon consuming more 25% cpu

    Hi,

    I have generated below gcore for a daemon consuming more than 25%
    Let me know why so many threads are using utime()

    #0 0xff19c4d4 in _sockconfig () from /usr/lib/libc.so.1
    #1 0x0001b94c in Tcp_receive (port_no=9900) at /tmp/arti/
    ArmorServer_NonERACOM//armorsrc/create_thread.c:266
    #2 0x0001b5dc in main (argc=1, argv=0xffbefa84) at /tmp/arti/
    ArmorServer_NonERACOM//armorsrc/secrvr_thr.c:317
    (gdb) info threads
    96 process 1322273712 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    95 process 1322208176 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    94 process 1322142640 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    93 process 1322077104 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    92 process 1322011568 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    91 process 1321946032 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    90 process 1321880496 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    89 process 1321814960 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    88 process 1321749424 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    87 process 1321683888 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    86 process 1321618352 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    85 process 1321552816 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    84 process 1321487280 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    83 process 1321421744 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    82 process 1321356208 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    81 process 1321290672 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    80 process 1321225136 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    79 process 1321159600 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    78 process 1321094064 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    77 process 1321028528 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    76 process 1320962992 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    75 process 1320897456 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    74 process 1320831920 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    73 process 1320766384 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    72 process 1320700848 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    71 process 1320635312 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    70 process 1320569776 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    69 process 1320504240 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    68 process 1320438704 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    67 process 1320373168 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    66 process 1320307632 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    65 process 1320242096 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    64 process 1320176560 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    63 process 1320111024 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    62 process 1320045488 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    61 process 1319979952 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    60 process 1319914416 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    59 process 1319848880 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    58 process 1319783344 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    57 process 1319717808 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    56 process 1319652272 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    ---Type to continue, or q to quit---
    55 process 1319586736 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    54 process 1319521200 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    53 process 1319455664 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    52 process 1319390128 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    51 process 1319324592 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    50 process 1319259056 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    49 process 1319193520 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    48 process 1319127984 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    47 process 1319062448 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    46 process 1318996912 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    45 process 1318931376 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    44 process 1318865840 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    43 process 1318800304 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    42 process 1318734768 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    41 process 1318669232 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    40 process 1318603696 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    39 process 1318538160 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    38 process 1318472624 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    37 process 1318407088 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    36 process 1318341552 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    35 process 1318276016 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    34 process 1318210480 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    33 process 1318144944 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    32 process 1318079408 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    31 process 1318013872 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    30 process 1317948336 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    29 process 1317882800 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    28 process 1317817264 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    27 process 1317751728 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    26 process 1317686192 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    25 process 1317620656 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    24 process 1317555120 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    23 process 1317489584 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    22 process 1317424048 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    21 process 1317358512 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    20 process 1317292976 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    19 process 1317227440 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    18 process 1317161904 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    17 process 1317096368 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    16 process 1317030832 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    15 process 1316965296 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    ---Type to continue, or q to quit---
    14 process 1316899760 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    13 process 1316834224 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    12 process 1316768688 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    11 process 1316703152 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    10 process 1316637616 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    9 process 1316572080 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    8 process 1316506544 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    7 process 1316441008 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    6 process 1316375472 0xff19f8b0 in utime () from /usr/lib/
    libc.so.1
    5 process 347056 0xff19ecc4 in _libc_sigaction () from /usr/lib/
    libc.so.1
    4 process 281520 0xff0592fc in get_sig () from /usr/lib/
    libthread.so.1
    3 process 215984 0xff19f8b0 in utime () from /usr/lib/libc.so.1
    2 process 150448 0xff19f200 in _lwp_continue () from /usr/lib/
    libc.so.1
    * 1 process 84912 0xff19c4d4 in _sockconfig () from /usr/lib/
    libc.so.1
    (gdb)


    Regards
    Harry

  2. Re: many threads using utime()--daemon consuming more 25% cpu

    Hi

    On Mon, 15 Sep 2008 22:10:35 -0700, harry wrote:
    > I have generated below gcore for a daemon consuming more than 25% Let me
    > know why so many threads are using utime()
    >
    > #0 0xff19c4d4 in _sockconfig () from /usr/lib/libc.so.1 #1 0x0001b94c
    > in Tcp_receive (port_no=9900) at /tmp/arti/
    > ArmorServer_NonERACOM//armorsrc/create_thread.c:266 #2 0x0001b5dc in
    > main (argc=1, argv=0xffbefa84) at /tmp/arti/
    > ArmorServer_NonERACOM//armorsrc/secrvr_thr.c:317 (gdb) info threads
    > 96 process 1322273712 0xff19f8b0 in utime () from /usr/lib/
    > libc.so.1
    > 95 process 1322208176 0xff19f8b0 in utime () from /usr/lib/
    > libc.so.1


    Perhaps it is polling for a file to be modified, ie, repeatedly checking
    the timestamps.

    It's difficult to guess without the source. Try to get a backtrace or a
    source code line and then read the appropriate part of the source.

    Remember processor power is there to be used, so it is only something to
    worry about if your machine is actually under-performing.

    viza

  3. Re: many threads using utime()--daemon consuming more 25% cpu

    In article ,
    viza wrote:

    > Hi
    >
    > On Mon, 15 Sep 2008 22:10:35 -0700, harry wrote:
    > > I have generated below gcore for a daemon consuming more than 25% Let me
    > > know why so many threads are using utime()
    > >
    > > #0 0xff19c4d4 in _sockconfig () from /usr/lib/libc.so.1 #1 0x0001b94c
    > > in Tcp_receive (port_no=9900) at /tmp/arti/
    > > ArmorServer_NonERACOM//armorsrc/create_thread.c:266 #2 0x0001b5dc in
    > > main (argc=1, argv=0xffbefa84) at /tmp/arti/
    > > ArmorServer_NonERACOM//armorsrc/secrvr_thr.c:317 (gdb) info threads
    > > 96 process 1322273712 0xff19f8b0 in utime () from /usr/lib/
    > > libc.so.1
    > > 95 process 1322208176 0xff19f8b0 in utime () from /usr/lib/
    > > libc.so.1

    >
    > Perhaps it is polling for a file to be modified, ie, repeatedly checking
    > the timestamps.


    utime() doesn't check timestamps, it SETS them.

    I suggest the OP use their OS's system call tracer to see what files are
    being touched with utime().

    --
    Barry Margolin, barmar@alum.mit.edu
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    *** PLEASE don't copy me on replies, I'll read them in the group ***

+ Reply to Thread