Changes between Version 5 and Version 6 of ServerDebug


Ignore:
Timestamp:
Jan 17, 2012, 6:00:14 AM (13 years ago)
Author:
wicked
Comment:

Updated scheduler debug instructions to match code as it's today.

Legend:

Unmodified
Added
Removed
Modified
  • ServerDebug

    v5 v6  
    4141
    4242This is useful for figuring out why your project is generating 'no work available' messages.
    43 As an alternative to this, edit `handle_request.C`,
    44 and put a call to `debug_sched(sreq, sreply, "../debug_sched")` just before `sreply.write(fout)`.
     43As an alternative to this, edit `sched/handle_request.cpp`,
     44and put a call to `debug_sched("debug_sched");` just before `sreply.write(fout, sreq);`.
    4545Then, after recompiling, touch a file called 'debug_sched' in the project root directory.
    4646This will cause transcripts of all subsequent scheduler requests and replies
    4747to be written to the `cgi-bin/` directory with separate small files for each request.
    48 The file names are `sched_request_H_R` where H=hostid and R=rpc sequence number.
     48The file names are `sched_request_H_R` and `sched_reply_H_R` where H=hostid and R=rpc sequence number.
    4949This can be turned off by deleting the 'debug_sched' file.
    5050
    51 To get core files for scheduler crashes, put the following line in sched/main.C, and recompile:
     51To get core files for scheduler crashes, uncomment the following line in sched/sched_main.cpp, and recompile:
    5252{{{
    5353#define DUMP_CORE_ON_SEGV 1