Skip to content

Commit 7df622e

Browse files
authored
Merge pull request #3 from zengmao/edits_heap_env
Information about --heap-size-hint and environment variables in .bashrc not propagating to jobs
2 parents bd612a9 + 6e2d612 commit 7df622e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

website/user_faq.md

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ path or set an environment variable accordingly.
114114

115115
[_**back to Content**_](#content)
116116

117+
## Julia unexpectedly killed for exceeding the requested memory limit
118+
119+
If a job has non-exclusive access to a node and has a memory limit that is lower than the total memory of the node, set the `--heap-size-hint` command line option to an appropriate value when starting Julia in the job script, e.g. `julia --heap-size-hint=4G my_script.jl` if you have requested a memory limit of 4G for running `my_script.jl`. This communicates the memory limit to Julia's garbage collector to enable more aggressive garbage collection when the memory limit is approached.
120+
121+
[_**back to Content**_](#content)
122+
117123
## I get memory-related issues when using CUDA.jl on a HPC cluster
118124

119125
Try setting `JULIA_CUDA_MEMORY_POOL=none` (see the [CUDA.jl documentation](https://cuda.juliagpu.org/stable/usage/memory/#Memory-pool) for more information).

website/user_gettingstarted.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You want to choose a file system with the following properties
3939
* good (parallel) I/O
4040
* no automatic deletion of unused files (or otherwise you have to find a workaround)
4141

42-
**On most clusters these criterion are best fit on a parallel file system (often `$SCRATCH`).** In this case, you should put `JULIA_DEPOT_PATH=$SCRATCH/.julia` into your `.bashrc`.
42+
**On most clusters these criterion are best fit on a parallel file system (often `$SCRATCH`).** In this case, you should put `JULIA_DEPOT_PATH=$SCRATCH/.julia` into your `.bashrc` (and your job scripts if `.bashrc` is not loaded by non-interactive jobs).
4343

4444
**Note:** If the last point (automatic deletion of unused files) is an issue for you, a pragmatic workaround could be a cronjob that touches all files in the Julia depot every once in a while.
4545

@@ -56,4 +56,4 @@ To make Julia produce efficient code that works on different CPUs, you need to s
5656

5757
You can get the CPU target name for the current system with `Sys.CPU_NAME`. For more information, see [this section of the Julia documentation](https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_CPU_TARGET) and [this section of the developer documentation](https://docs.julialang.org/en/v1/devdocs/sysimg/#Specifying-multiple-system-image-targets).
5858

59-
[_**back to Content**_](#content)
59+
[_**back to Content**_](#content)

0 commit comments

Comments
 (0)