Turn off guard pages for qthreads performance run

[ok'd by gpu team]

This probably should have been off since we started testing qthreads
performance but I missed it until now.

Eventually we need a better way to have guard pages turned off by --fast or
something. However turning off guard pages would need to happen at runtime and
we don't currently have a way to propagate this.


git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@23553 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Update launchcmd-for-aprun-launcher script to tolerate moab/torque fast dequeues.

We occasionally see tests that fail because the launchcmd script cannot find
the original job in qstat. We think this might be due to qstat/qsub dequeueing
the job very quickly after completion. So, if we lose track of the job, but we
end up with an output file, assume it completed successfully.

r: eronaghan

git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@23554 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Generalize the CHPL_RT_MAX_HEAP_SIZE environment variable.

[Reviewed by Elliot.]

In the past we have used GASNET_MAX_SEGSIZE to specify the size of the
heap with CHPL_COMM=gasnet and CHPL_GASNET_SEGMENT=fast.  This commit
generalizes the CHPL_RT_MAX_HEAP_SIZE environment variable previously
used only by CHPL_COMM=ugni to do that same thing.  (If both variables
are set CHPL_RT_MAX_SEG_SIZE overrides GASNET_MAX_SEGSIZE, following the
precedent set by CHPL_RT_NUM_THREADS_PER_LOCALE and QT_HWPAR, used by
qthreads tasking.)

The specific file changes are as follows.

runtime/src/comm/gasnet/comm-gasnet.c
  Rename chpl_comm_gasnet_set_max_segsize() to set_max_segsize() (it's
  file static, after all) and always call it at init time.  In there,
  override GASNET_MAX_SEGSIZE with CHPL_RT_MAX_HEAP_SIZE if both are
  set.  If neither is set and we really need a max segment size, as when
  using the gemini or aries conduits on Cray X* systems, default to 90%
  of the available memory on the locale.

runtime/include/chpl-comm.h
runtime/src/chpl-comm.c
  Add chpl_comm_getenvMaxHeapSize(), to get the value of the
  CHPL_RT_MAX_HEAP_SIZE environment variable.

runtime/include/chplsys.h
runtime/src/chplsys.c
  Add chpl_bytesAvailOnThisLocale(), to get the amount of available
  memory on this locale.

doc/release/platforms/README.cray
  Move the discussion of setting the maximum heap size into the section
  of this README common to all comm layers.  Remove the now out-of-date
  discussion of CHPL_UGNI_MAX_HEAP_SIZE under the ugni comm layer.  And
  finally, mention both CHPL_RT_MAX_HEAP_SIZE and GASNET_MAX_SEGSIZE in
  the section that discusses reducing the GASNet segment size as a
  response to memory registration failures.


git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@23555 3a8e244f-b0f2-452b-bcba-4c88e055c3ca