1. 08 Jan, 2015 5 commits
  2. 07 Jan, 2015 1 commit
  3. 06 Jan, 2015 3 commits
    • Alessandro Rubini's avatar
      userspace/hal: try to reduce the cpu load of hal · e3a1c41b
      Alessandro Rubini authored
      run hal_ports_update_all() only 5 times per second (with some
      jitter).  However the overall load is not lowered.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e3a1c41b
    • Alessandro Rubini's avatar
      userspace/hal: reorder the main loop, no actual change · 5dfaba0c
      Alessandro Rubini authored
      Every two months I've been wondering what this 100%-cpu main loop
      was, to later acknowledge it was not really 100%.
      
      This commit reorders items and makes it clear where the delay is.
      I tried raising it to 100ms from 25ms, but the cpu load of wrsw_hal
      didn't change, because most of the time we return to the main
      loop before the timeout, due to an RPC call being served.
      
      In my opinion we should add a check in the main loop, to call
      port_update_all only 10 times per second, to actually
      lower the CPU load of this process.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      5dfaba0c
    • Alessandro Rubini's avatar
      userspace/hal: bugfix: mark a port in-use after error checking · 5628e3cc
      Alessandro Rubini authored
      bug introduced in c45f9161.
      
      The new check for dotconfig params was added after setting
      port->in_use to 1.  Thus, at each loop, the hal was calling
      
         ioctl(6, SIOCGIFFLAGS, {ifr_name="", ???}) = -1 ENODEV (No such device)
      
      but that ENODEV was after a call to modprobe for the "" interface.
      Actually this command:
      
          /sbin/modprobe -q -- netdev-
      
      By means of /sbin/modprobe being the string in /proc/sys/kernel/modprobe .
      But modprobe is busybox, so over NFS we had a zillion stat() accesses
      for ld.so, uclibc.so and busybox.
      
      Thanks Adam for noting the NFS traffic increase at that commit.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      5628e3cc
  4. 05 Jan, 2015 5 commits
  5. 04 Jan, 2015 26 commits