lkml.org 
[lkml]   [2008]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subject[2.6.28-rc1 regression] wmifinfo dockapp takes 100% of cpu (bisected)
    Hi,

    I have just tested 2.6.28-rc1 and I bisected a particular regression
    which I faced to 8ff3e8e85fa6c312051134b3953e397feb639f51 ("select:
    switch select() and poll() over to hrtimers") from Arjan (added to Cc:).

    The symptom is that one little Window Maker dockapp I use, called wmifinfo,
    starts to use 100% of the cpu. I have to kill it to avoid staying at the
    maximum 2000 MHz.

    The dockapp apparently enters an infinite loop, because I used strace
    for a few moments and the log file had more than 1 million lines.
    The block of commands which kept repeating itself in the strace log
    was:

    open("/proc/net/dev", O_RDONLY) = 9
    fstat(9, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa374ccb000
    read(9, "Inter-| Receive "..., 1024) = 694
    read(9, "", 1024) = 0
    close(9) = 0
    munmap(0x7fa374ccb000, 4096) = 0
    ioctl(5, SIOCGIFCONF, {0, {}}) = 0
    ioctl(5, SIOCGIFFLAGS, {ifr_name="eth0", ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0
    ioctl(5, SIOCGIFHWADDR, {ifr_name="eth0", ifr_hwaddr=00:1a:80:4a:7f:37}) = 0
    ioctl(5, SIOCGIFADDR, {ifr_name="eth0", ???}) = -1 EADDRNOTAVAIL (Cannot assign requested address)
    ioctl(5, SIOCGIFNETMASK, {ifr_name="eth0", ???}) = -1 EADDRNOTAVAIL (Cannot assign requested address)
    lseek(6, 0, SEEK_SET) = 0
    read(6, "Iface\tDestination\tGateway \tFlags"..., 1024) = 128
    read(6, "", 1024) = 0
    lseek(7, 0, SEEK_SET) = 0
    read(7, "Inter-| sta-| Quality |"..., 1024) = 238
    read(7, "", 1024) = 0
    lseek(8, 0, SEEK_SET) = 0
    read(8, "Inter-| Receive "..., 1024) = 694
    read(8, "", 1024) = 0
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], [3], NULL, NULL) = 1 (out [3])
    writev(3, [{">\0\7\0\1\0`\0\1\0`\0\7\0`\0@\0\0\0\0\0\0\0@\0@\0>\0\7\0"..., 616}], 1) = 616
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], [3], NULL, NULL) = 1 (out [3])
    writev(3, [{">\0\7\0\1\0`\0\6\0`\0\7\0`\0\0\0\0\0\0\0\0\0\206\0Z\0", 28}], 1) = 28
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], NULL, NULL, {0, 5000000}) = -1 EINVAL (Invalid argument)
    select(4, [3], [3], NULL, NULL) = 1 (out [3])
    writev(3, [{">\0\7\0\1\0`\0\5\0`\0\7\0`\0\0\0\0\0\0\0\0\0\206\0Z\0", 28}], 1) = 28
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], NULL, NULL, {0, 5000000}) = -1 EINVAL (Invalid argument)
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], NULL, NULL, {0, 5000000}) = -1 EINVAL (Invalid argument)
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], NULL, NULL, {0, 5000000}) = -1 EINVAL (Invalid argument)
    read(3, 0x228ff54, 4096) = -1 EAGAIN (Resource temporarily unavailable)


    I got to that commit by git bisect, but I could not revert it cleanly to really
    prove it is the cause of the problem. So I apologize in advance if this commit
    is not the true culprit.

    I can test any patches.


    \
     
     \ /
      Last update: 2008-10-25 11:43    [W:0.044 / U:121.416 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site