ROS cache size and Key-Value queries
Hello. As I know there are two types of cache vertica uses while reading data from disk:
- a file system cache
- and a cache of uncompressed data blocks (ROS cache) Vertica maintains internally to avoid decompression on blocks reused quickly.
They mentioned at MC MonitoringSystemMemoryUsage page:
https://my.vertica.com/docs/7.0.x/HTML/index.htm#Authoring/AdministratorsGuide/Monitoring/Vertica/MonitoringSystemMemoryUsage.htm?TocPath=Administrator's%20Guide|Monitoring%20HP%20Vertica|Monitoring%20HP%20Vertica%20Using%20MC|Monitoring%20System%20Resources|_____4
My concern is related with key-value queries. Generaly I see them performing on 300ms per query. But sometime there is a 4-10 seconds skipe. And if I rerun that kind of query after a skipe I get the same 300ms performance. I belive it is somehow connected with disk skan operations and cache failure.
Does anybody know the query MC is using to determine ROS cache size? Are there any setting available for ROS cache?
Comments
Hi,
You can see all of the queries executed by MC in the QUERY_REQUESTS table.
Here is how the rcache is determined:
What parameters control ROS cache?
But, I doubt the issue is with the cache. Maybe a resource pool issue, or your K/V query might not be running on a single node?
Makes sure to read through the "Key/Value Performance and Troubleshooting" section of the doc here:
https://my.vertica.com/docs/7.0.x/HTML/index.htm#Authoring/ProgrammersGuide/ClientJDBC/KVApi/troubleshootingKV.htm
Hi
Yeah, I have figured out already thet EXECUTIONPARALLELISM is wasting threads. In addition I've set HIGH priority, exclusive CPU and gave 3/4 of cpu.
Here are the settings I have now:
And I'm still facing the same issue with spikes. Most key-value queries run fast, but some hung for few seconds and tens of seconds. And yaeh it looks like throttling after all when there are few outliers at the same time. I'm just out of clue how can I fix this Any advice is appreciated. Guessing postgres will be much of help for me.
Thank you
@phil2 - What Vertica version are you using?