Simple client side work unit validator


Advanced search

Message boards : Wish list : Simple client side work unit validator

Sort
Author Message
Jesse Viviano

Joined: Jan 14 10
Posts: 7
ID: 24317
Credit: 349,250
RAC: 0
Message 6213 - Posted 4 Feb 2011 7:48:56 UTC

With all the troubles this project has with generating bad work units where the input files are empty, the client code should validate the work unit by checking to see if the input file is empty or not. If the input file is empty, then the client code needs to immediately declare a compute error so that the CPU does not waste time on work units that never get anywhere and will only die when either the user notices that the work unit is bad or BOINC declares that the work unit is taking too long to finish and times it out.

Andrei

Joined: Feb 20 11
Posts: 2
ID: 38246
Credit: 1,704
RAC: 0
Message 6451 - Posted 31 Aug 2011 12:49:32 UTC

I'm up for this idea.

Message boards : Wish list : Simple client side work unit validator

Database Error
: The MySQL server is running with the --read-only option so it cannot execute this statement
array(3) {
  [0]=>
  array(7) {
    ["file"]=>
    string(47) "/boinc/projects/docking/html_v2/inc/db_conn.inc"
    ["line"]=>
    int(97)
    ["function"]=>
    string(8) "do_query"
    ["class"]=>
    string(6) "DbConn"
    ["object"]=>
    object(DbConn)#7 (2) {
      ["db_conn"]=>
      resource(60) of type (mysql link persistent)
      ["db_name"]=>
      string(7) "docking"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(51) "update DBNAME.thread set views=views+1 where id=586"
    }
  }
  [1]=>
  array(7) {
    ["file"]=>
    string(48) "/boinc/projects/docking/html_v2/inc/forum_db.inc"
    ["line"]=>
    int(60)
    ["function"]=>
    string(6) "update"
    ["class"]=>
    string(6) "DbConn"
    ["object"]=>
    object(DbConn)#7 (2) {
      ["db_conn"]=>
      resource(60) of type (mysql link persistent)
      ["db_name"]=>
      string(7) "docking"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(3) {
      [0]=>
      object(BoincThread)#3 (16) {
        ["id"]=>
        string(3) "586"
        ["forum"]=>
        string(1) "9"
        ["owner"]=>
        string(5) "24317"
        ["status"]=>
        string(1) "0"
        ["title"]=>
        string(38) "Simple client side work unit validator"
        ["timestamp"]=>
        string(10) "1314794972"
        ["views"]=>
        string(2) "83"
        ["replies"]=>
        string(1) "1"
        ["activity"]=>
        string(18) "1.127209878609e-53"
        ["sufferers"]=>
        string(1) "0"
        ["score"]=>
        string(1) "0"
        ["votes"]=>
        string(1) "0"
        ["create_time"]=>
        string(10) "1296805736"
        ["hidden"]=>
        string(1) "0"
        ["sticky"]=>
        string(1) "0"
        ["locked"]=>
        string(1) "0"
      }
      [1]=>
      &string(6) "thread"
      [2]=>
      &string(13) "views=views+1"
    }
  }
  [2]=>
  array(7) {
    ["file"]=>
    string(63) "/boinc/projects/docking/html_v2/user/community/forum/thread.php"
    ["line"]=>
    int(184)
    ["function"]=>
    string(6) "update"
    ["class"]=>
    string(11) "BoincThread"
    ["object"]=>
    object(BoincThread)#3 (16) {
      ["id"]=>
      string(3) "586"
      ["forum"]=>
      string(1) "9"
      ["owner"]=>
      string(5) "24317"
      ["status"]=>
      string(1) "0"
      ["title"]=>
      string(38) "Simple client side work unit validator"
      ["timestamp"]=>
      string(10) "1314794972"
      ["views"]=>
      string(2) "83"
      ["replies"]=>
      string(1) "1"
      ["activity"]=>
      string(18) "1.127209878609e-53"
      ["sufferers"]=>
      string(1) "0"
      ["score"]=>
      string(1) "0"
      ["votes"]=>
      string(1) "0"
      ["create_time"]=>
      string(10) "1296805736"
      ["hidden"]=>
      string(1) "0"
      ["sticky"]=>
      string(1) "0"
      ["locked"]=>
      string(1) "0"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(13) "views=views+1"
    }
  }
}
query: update docking.thread set views=views+1 where id=586