Xvfb multiple displays for parallel processing?

I'm interested in launching several manifestations of xvfb: I have between 10-50 parallel script instances that connect to the xvfb display. Is it profitable to run the same number of xvfb displays and connect 1 to 1? Or do several processes have the same display? RAM is not a problem nor the processing power.

+8
python parallel-processing rendering xvfb
source share
1 answer

One Xvfb server should handle many connections well. One thing you want to do is start the server with the -noreset option. Without it, a memory leak occurs every time the client disconnects.

The only time when multiple Xvfb servers are useful is if you have several processors available in the machine (for example, 8 cores) and your script is heavy. To make sure this is the case, plug in many instances of your script and check top to find out what Xvfb CPU usage is. If it is 100%, you can use additional instances of Xvfb.

+12
source share

All Articles