title: Perforce strange 10s delay/lag on some commands [raspberry-pi / cubieboard]
body: <p>i am trying to setup perforce server on cubieboard2 (raspberry-pi clone)</p>
  
  <p>i have downloaded p4d and p4 for Linux ARM (2011.1)</p>
  
  <p>i am running server like this:  </p>
  
  <pre><code>p4d -d -r root_path -p 12345 -L log
  </code></pre>
  
  <p>statistics of running commands directly on server machine (server ip 192.168.1.1)</p>
  
  <pre><code>p4 -p 12345 users               # it returns immediately
  p4 -p 127.0.0.1:12345 users     # it returns immediately
  p4 -p localhost:12345 users     # it returns immediately
  p4 -p 192.168.1.1:12345 users   # it returns immediately
  p4 -p 12345 info                # it returns immediately
  p4 -p 127.0.0.1:12345 info      # it returns immediately
  p4 -p localhost:12345 info      # it returns immediately
  p4 -p 192.168.1.1:12345 info    # returns after ~10 sec
  </code></pre>
  
  <p>i want to connect to this perforce server from my windows pc, since i am in LAN with the server, i am connecting with <em>p4 -p 192.168.1.1:12345 users</em> command returns immediately, <em>info</em> with 10sec lag (using p4 on my windows pc)<br>
  i didn't checked other commands, i am unable to connect with p4Admin or p4v, they hang/do nothing, thus my server is unusable</p>
  
  <p>starting server with  </p>
  
  <pre><code>p4d -d -r root_path -p 192.168.1.1:12345 -L log
  </code></pre>
  
  <p>makes it impossible to run commands with <em>p4 -p 12345 or localhost:12345 or 127.0.0.1:12345</em><br>
  but its same story with 192.168.1.1:12345</p>
  
  <p>Note. i am also running ftp on it, and it runs fine, when connecting through 192.168.1.1</p>
  
  <p>Edit. added strace log for p4d<br>
  <strong>strace of <em>'p4 -p 192.168.1.1:12345 users'</em> ran from win7 pc (ip ends with '13', returns immed.)</strong></p>
  
  <pre><code>{sa_family=AF_INET, sin_port=htons(61483), sin_addr=inet_addr("192.168.1.13")}, [16]) = 4
  fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
  fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
  fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
  setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
  rt_sigaction(SIGCHLD, {0x16d160, [CHLD], SA_RESTART|0x4000000}, {0x16d160, [CHLD], SA_RESTART|0x4000000}, 8) = 0
  wait4(-1, 0xbea31744, WNOHANG, NULL)    = -1 ECHILD (No child processes)
  clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6e45068) = 2890
  close(4)                                = 0
  gettimeofday({1380359365, 320807}, NULL) = 0
  accept(3, 0xbea31734, [16])             = ? ERESTARTSYS (To be restarted)
  --- SIGCHLD (Child exited) @ 0 (0) ---
  wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 2890
  wait4(-1, 0xbea3141c, WNOHANG, NULL)    = -1 ECHILD (No child processes)
  rt_sigaction(SIGCHLD, {0x16d160, [CHLD], SA_RESTART|0x4000000}, {0x16d160, [CHLD], SA_RESTART|0x4000000}, 8) = 0
  sigreturn()                             = ? (mask now [HUP INT QUIT])
  accept(3, 
  </code></pre>
  
  <p><strong>strace for p4 -p 192.168.1.1:12345 info</strong></p>
  
  <pre><code>{sa_family=AF_INET, sin_port=htons(61486), sin_addr=inet_addr("192.168.1.13")}, [16]) = 4
  fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
  fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
  fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
  setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
  rt_sigaction(SIGCHLD, {0x16d160, [CHLD], SA_RESTART|0x4000000}, {0x16d160, [CHLD], SA_RESTART|0x4000000}, 8) = 0
  wait4(-1, 0xbea31744, WNOHANG, NULL)    = -1 ECHILD (No child processes)
  clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6e45068) = 2894
  close(4)                                = 0
  gettimeofday({1380359462, 822219}, NULL) = 0
  accept(3,
  </code></pre>
  
  <p>now it lags, and after, following lines appear</p>
  
  <pre><code>          0xbea31734, [16])             = ? ERESTARTSYS (To be restarted)
  --- SIGCHLD (Child exited) @ 0 (0) ---
  wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 2894
  wait4(-1, 0xbea3141c, WNOHANG, NULL)    = -1 ECHILD (No child processes)
  rt_sigaction(SIGCHLD, {0x16d160, [CHLD], SA_RESTART|0x4000000}, {0x16d160, [CHLD], SA_RESTART|0x4000000}, 8) = 0
  sigreturn()                             = ? (mask now [HUP INT QUIT])
  accept(3,
  </code></pre>
  
  <p>its not telling me much, but as you can see, the exact same line<br>
  accept(3, 0xbea31734, [16])             = ? ERESTARTSYS (To be restarted)<br>
  appears in both logs, and on the latter it stops for 10 sec after 'accept(3, '</p>
  
  <p>As for swap, i had it enabled as swap file on external drive connected to the board, while i am booting from sd-card, either way, no change after disabling it.</p>