4. Settings For Using The Cache¶
4.1. What you can do with cache settings¶
With first-layer storage, you can expect fast access to files by configuring the following cache settings to match job characteristics.
Some features can be expected to speed up file access by effectively using the cache.
4.2. Configuring a Second-layer Storage Cache Region¶
Specify whether to cache files read into the cache area of secondlayer storage.
If there are multiple loads of files on second-layer storage, you can take advantage of the cache.
Option of “pjsub –llio” |
Range |
Description |
---|---|---|
sio-read-cache={on|off} |
on or off |
Specifies whether to cache files read into the case area of second-layer storage. on: Proceed cache. off: Does not proceed cache |
4.3. Cache in Compute Node¶
If your program uses less memory, you can expect faster access to files by setting it as a cache.
The following parameters set the cache in the Compute node.
Option of “pjsub –llio” |
Range |
Description |
---|---|---|
cn-cache-size=SIZE |
0MiB-32768MiB |
Specifies the size of the first-layer storage cache to acquire within the compute nodes. |
cn-cached-write-size=SIZE |
0MiB - setting value “cn-cache-size” |
Specifies the size of the first-layer storage cache to acquire within the compute nodes. |
cn-read-cache={on|off} |
on or off |
Specifies the behavior of whether files read from first-layer storage are cached in the in-compute node cache. on: Cache. off: Do not cache. |
4.3.1. cn-cache-size¶
“cn-cache-size” specifies the size of the cache area for first-layer storage. The cache effect is achieved by using the area that is not used by the application as the cache area for first-layer storage.

4.3.2. cn-cached-write-size¶
Data that does not exceed the “cn-cached-write-size” threshold is written to the compute node cache.

Data exceeding the threshold is written without using the compute node cache.

4.3.3. cn-read-cache¶
When “cn-read-cache” is set to on, file information read from firstlayer storage is cached in the node.

If there is not enough cache space available for the amount of data read by the application, the read data will be evicted from the cache and cache misses may occur, resulting in a performance failure.
4.4. Automatic Readahead Function¶
When a job attempts to read a contiguous area of layered storage, the automatic readahead function can be expected to speed up the read process by automatically reading into the in-compute node cache.
If you enable the automatic readahead function, you must also configure the Cache in Compute Node appropriately.
Option of “pjsub –llio” |
Range |
Description |
---|---|---|
auto-readahead={on|off} |
on or off |
Specifies the behavior of the automatic readahead function. on : Enable. off : Disable. |
4.5. Asynchronous Close¶
You can reduce the elapsed time of a job by enabling asynchronous close. If you need synchronization, use fsync(2).
Option of “pjsub –llio” |
Range |
Description |
---|---|---|
async-close={on|off} |
on or off |
Specifies whether file closures on first-layer and second-layer storage are closed asynchronously. on: Asynchronous close (write completion is not guaranteed when the file is closed) off: Synchronous close (write completion is guaranteed when the file is closed) |

4.6. Unwritten File List¶
At the end of the job, you can specify where to output information for files that have not yet been exported to second-layer storage. If not specified, it is output to the standard error output.
Option of “pjsub –llio” |
Description |
---|---|
uncompleted-fileinfo-path=path |
Specify the output destination for file information that has not been written to the second-layer storage. |
For more information about the unwritten file list , see:
LLIO User’s Guide““2.6 Unwritten File List Acquisition Function”
4.7. LLIO Performance Information¶
The output setting method of LLIO performance information is described below.
Option of “pjsub –llio” |
Description |
---|---|
perf |
When this option is specified, LLIO performance information is output. |
perf-path=PATH |
You can set the output path of LLIO performance information. |
For more information about LLIO performance information, see、LLIO User’s Guide“2.7.2 LLIO Performance Information”.