-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support rtree preheat #6781
base: master
Are you sure you want to change the base?
support rtree preheat #6781
Conversation
Hmm. Why not run a simple |
I don't think it will produce the same effect, cat file just preheat the cache of disk but will not preheat the mmap page cache and I just want others do not sense the process when they first use the osrm-routed and encounter the same problem when started |
@danpat another question, why the desinger of osrm just leave the .fileIndex using mmap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the preheat is just a linear scan through the data. Seems one can do that using cat
in any production setup.
@hy05190134 Hi, thanks for your work. we use your preheat method in our osrm. We notice that during this init stage, the CPU usage (20m) is low but iowait (8*25%) & load (2.5) is high. this affects the serving and makes several requests timeout. I think this is due to the preheat and mmap. I'm wondering wether there is a way can solve this problem. do you have any advice? |
Issue
What issue is this PR targeting? If there is no issue that addresses the problem, please open a corresponding issue and link it here.
we found a lot of requests timeout when osrm is starting, but after a while the rt decrease, so we want to resolve the problem, and we found the reason is the preheat of rtree, because the leaf node of rtree is stored in the .fileIndex file and
it use mmap so it will produce disk I/O for preheat
Please read our documentation on release and version management.
If your PR is still work in progress please attach the relevant label.
Tasklist
Requirements / Relations
Link any requirements here. Other pull requests this PR is based on?