[ 
https://issues.apache.org/jira/browse/FLINK-24918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17444970#comment-17444970
 ] 

Yun Tang commented on FLINK-24918:
----------------------------------

[~aitozi], I think the suggestion make sense as different disk would have 
performance impact for RocksDB like state-backend. 
Current root dir actually relays on Java's File#createTempFile, which could be 
changed with system property {{java.io.tmpdir}}. I think we could introduce new 
option to configure the root dir and give explicit descriptions in 
https://github.com/apache/flink-benchmarks documentation.
Do you want to take this ticket?

> Support to specify the data dir for state benchmark 
> ----------------------------------------------------
>
>                 Key: FLINK-24918
>                 URL: https://issues.apache.org/jira/browse/FLINK-24918
>             Project: Flink
>          Issue Type: Improvement
>          Components: Benchmarks, Runtime / State Backends
>            Reporter: Aitozi
>            Priority: Minor
>
> {{StateBackendBenchmarkUtils}} use null as the parent dir to create temp dir, 
> which will finally use the /tmp as the data dir. It has two downsides:
> 1. the /tmp dir often mount with tmpfs, which may store data in memory. it 
> will affect the result of rocksdb benchmark
> 2. It can not support to use benchmark to measure the performance on a new 
> device. 
> So I purpose to enhance the state benchmark to support specify the default 
> data dir. And avoiding to use the {{/tmp}} as default.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to