Reputation: 13195
I am designing a server for the following scenario:
cat image39 > /dev/null
to force cache into memory on serverThis has to scale to many series and clients. Probably on the order of 1000 concurrent prefetches. I understand that threads can cause performance hit if there are too many. Would it be better to fork a new process instead? Is there a more efficient way than threads or processes ?
Thanks!!!
Upvotes: 0
Views: 302
Reputation: 249434
This is premature optimization. Try implementing your system without tricks to "force" the cache, and see how it works. I bet it'll be fine--and you won't then need to worry about nasty surprises if it turns out your tricks don't play nice with other things on the system.
Upvotes: 1