Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-13019

sanity test_60g: usleep: command not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.14.0
    • None
    • 3
    • 9223372036854775807

      This issue was created by maloo for Andreas Dilger <adilger@whamcloud.com>

      This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/cbeb78f8-0978-11ea-bbc3-52540065bddc

      test_60g failed with the following error:

      usleep: command not found
      

      It seems that "usleep" is a command specific to RHEL and does not exist in any package in Ubuntu. It is instead possible to replace "usleep 100" with "sleep 0.0001" (which is available in Ubuntu) to get the same effect (note overhead in calling sleep times this short is the same for both commands):

      $ time for i in {0..1000}; do usleep 5000; done
      
      real	0m7.732s
      user	0m0.776s
      sys	0m1.766s
      
      $ time for i in {0..1000}; do sleep 0.005; done
      
      real	0m7.888s
      user	0m0.841s
      sys	0m1.937s
      

      VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
      sanity test_60g - mkdir failed

            adilger Andreas Dilger
            maloo Maloo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: