adjusting zma process priority "nice" value
Posted: Tue Jun 21, 2005 9:18 pm
I own a small computer store, one of the things we do is setup small businesses with Fedora Core 3 (Thinking about switching to debian) servers which usually act as a basic file/print/email/web server for their business.
We are going to be offering ZoneMinder solutions pre configured as an option with these same servers. They will basically be an all in one business server providing all the basics a small businees might require.
The specs on these servers usually isn't anything special, AMD 3000+/1GB DDR/250GB HD.
Something I have noticed during my testing of the zoneminder setup in the office is that doing a print job either via a smb print share over the network OR from the server machine itself is VERY slow IF a camera is recording at the same time as the print job. If no cameras are recording it is fast as can be. This is easily remedied by adjusting the "nice" value of the zma processes to 19. This allows the other processes such as the cups printing service to do what it needs to then give it all back when done. Video quality/performance is not effected with this new value.
My Question... how to do this automatically during startup? I did this manually using top and adjusting the nice value after startup. I need this to be done automatically when zm starts up. This would seem to be done in the "zmpkg.pl" file but I can't seem to get anything to work.
Any help would be greatly appreciated.
Thank You!
We are going to be offering ZoneMinder solutions pre configured as an option with these same servers. They will basically be an all in one business server providing all the basics a small businees might require.
The specs on these servers usually isn't anything special, AMD 3000+/1GB DDR/250GB HD.
Something I have noticed during my testing of the zoneminder setup in the office is that doing a print job either via a smb print share over the network OR from the server machine itself is VERY slow IF a camera is recording at the same time as the print job. If no cameras are recording it is fast as can be. This is easily remedied by adjusting the "nice" value of the zma processes to 19. This allows the other processes such as the cups printing service to do what it needs to then give it all back when done. Video quality/performance is not effected with this new value.
My Question... how to do this automatically during startup? I did this manually using top and adjusting the nice value after startup. I need this to be done automatically when zm starts up. This would seem to be done in the "zmpkg.pl" file but I can't seem to get anything to work.
Any help would be greatly appreciated.
Thank You!