[
https://issues.apache.org/jira/browse/HDDS-17912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-17912:
----------------------------------
Labels: pull-request-available (was: )
> Add a stream cache for short-circuit read
> -----------------------------------------
>
> Key: HDDS-17912
> URL: https://issues.apache.org/jira/browse/HDDS-17912
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Sammi Chen
> Assignee: Sammi Chen
> Priority: Major
> Labels: pull-request-available
>
> Add a block cache for short-circuit with default
> ozone.client.read.short-circuit.streams.cache.size 256
> ozone.client.read.short-circuit.streams.cache.expiry 5m
>
> similar to HDFS default configuration
> dfs.client.read.shortcircuit.streams.cache.size 256
> dfs.client.read.shortcircuit.streams.cache.expiry.ms 5m
>
> Vector search performance data
> Before the patch
>
> {code:java}
> Random access: 1,009 rows/sec
> Vector search: 73.8 QPS
> nprobes= 1 QPS= 82.5 avg_latency=12.1ms
> nprobes= 4 QPS= 88.8 avg_latency=11.3ms
> nprobes= 8 QPS= 95.8 avg_latency=10.4ms
> nprobes= 16 QPS= 90.2 avg_latency=11.1ms
> nprobes= 32 QPS= 95.4 avg_latency=10.5ms{code}
>
>
> After the patch
>
> {code:java}
> Random access: 2,417 rows/sec
> Vector search: 140.3 QPS
> nprobes= 1 QPS= 180.0 avg_latency=5.6ms
> nprobes= 4 QPS= 188.0 avg_latency=5.3ms
> nprobes= 8 QPS= 212.9 avg_latency=4.7ms
> nprobes= 16 QPS= 227.9 avg_latency=4.4ms
> nprobes= 32 QPS= 180.3 avg_latency=5.5ms{code}
>
>
> S3 gateway related short-circuit stream cache logs
>
> {code:java}
> 2026-11-24 13:15:11,591 [s3g-readiness-om-0] INFO
> org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 24a506b5 is
> created with maxSize 256, expiryMs 300000
> 2026-11-24 13:15:26,934 [qtp1422273905-28] INFO
> org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 6df9b40d is
> created with maxSize 256, expiryMs 300000
> 2026-11-24 13:20:11,588 [XceiverClientManager-cleanup-0] INFO
> org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 24a506b5 Hits: 0,
> Misses: 0, HitRate: 1.0, MissRate: 0.0, AverageLoadPenalty(Ns): 0.0
> 2026-11-24 13:20:26,935 [XceiverClientManager-cleanup-0] INFO
> org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 6df9b40d Hits:
> 752538, Misses: 11, HitRate: 0.9999853830116046, MissRate:
> 1.4616988395440031E-5, AverageLoadPenalty(Ns): 0.0{code}
>
>
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]