9
To develop in Ruby on Rails, I use here a virtual machine of Virtualbox with Ubuntu Server 14.04 without graphical interface installed.
I recently discovered a configuration that dramatically improves VM performance:
- Enable 3D video acceleration;
- Increase video memory from ~8MB to 128MB.
After I changed only these two options, I got the impression that everything got about 5 times (!) faster: operating system boot, Rails test execution and even the performance of the same Rails applications.
It surprised me, because I always thought that 3D acceleration was only for graphic things like games, CAD tools, OS graphical interface, etc., but in VM I don’t use anything graphic.
The above event led me to doubt whether non-graphic processing can also benefit from 3D acceleration, and why it happens.
It would be so nice for people who understand the subject to answer
– Maniero
The question is good, but I believe it is decontextualized... or the goal can deny me?
– RodrigoBorth
I voted to reopen, as this is a matter of concern directly to the developer (and not only incidentally). It is a case where the greater understanding of the environment in which a system is being deployed allows a better use of its resources, with direct impact on its performance.
– mgibsonbr
Yeah, I guess "Running the Rails test <-> got 5x faster" is quite relevant to programming.
– brasofilo
The current operating systems themselves already use a lot of graphic acceleration, mainly the heavier interfaces
– Rodrigo Sidney