Announcement

Collapse
No announcement yet.

launch phoronix test suite as a cronjob on linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • launch phoronix test suite as a cronjob on linux

    Hello

    we would like to launch phoronix test suite the night using the linux crontab
    i did a batch-setup then run it as batch benchmark.. is this the right way to do it.. then how to view the results?

    in batch setup there is no way to put the name or description so how can I do that to give meaningful names to the tests that are to be done during the night

    regards


  • #2
    You can either setup a Phoromatic Server and deploy it that way. If using the batch benchmark functionality, you can still seed the test result identifier, description, etc. Look at the Phoronix Test Suite documentation with the environment variables and via the environment variables like TEST_RESULTS_IDENTIFIER you can see that information. You would then be able to view the results locally just as you would any other run PTS result. If running many systems, using the Phoromatic Server is the much nicer way.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      apparently there is something wrong with crontab job:

      when run in the crontab with the following command:

      5 0 * * * phoronix-test-suite batch-benchmark hdparm-read > hdparm-test-results

      this is the output file in the root home dir:


      Phoronix Test Suite v8.0.1

      Installed: pts/hdparm-read-1.0.0

      Cannot run pts/hdparm-read-1.0.0 in batch mode as root access is required.


      I run it in the root's crontab..

      i cannot use server as the server are quite old and no php5.4+.

      thanks

      Comment


      • #4
        Hello

        does anyone has any idea why I cannot run the hdparm-read test from the crontab ot says that root access is required but I am root.. I use the crontab of root user

        normal hdparm command works but I' d like to use phoronix instead of having to write a custom script that does the same.

        thank you

        Comment


        • #5
          Originally posted by garcimo View Post
          Hello

          does anyone has any idea why I cannot run the hdparm-read test from the crontab ot says that root access is required but I am root.. I use the crontab of root user

          normal hdparm command works but I' d like to use phoronix instead of having to write a custom script that does the same.

          thank you
          Does it still have root detection issues if using the latest stable release now (8.2.0)? I haven't encountered this issue myself.
          Michael Larabel
          https://www.michaellarabel.com/

          Comment


          • #6
            Hello

            with the latest version in the crontab

            it happens for the hdparm-read test.

            however if I run with at command it runs ok but not when I put the line in the root's crontab in batch mode..

            Comment


            • #7
              Originally posted by garcimo View Post
              Hello

              with the latest version in the crontab

              it happens for the hdparm-read test.

              however if I run with at command it runs ok but not when I put the line in the root's crontab in batch mode..
              This patch I just added should fix it if the cron job is running with different username - https://github.com/phoronix-test-sui...de3b35d8ec34ca
              Michael Larabel
              https://www.michaellarabel.com/

              Comment


              • #8
                Hello
                thank you for this however it is not running as other user crontab but the root's

                how do you apply the path?

                regards

                Comment

                Working...
                X