OS4X Core performance and resources

From OS4X

OS4X is extremely optimized for ressource saving. Because of that fact, OS4X is able to run on PDAs, mobile phones as well as on heavy loaded Unix servers.


In order to calculate the size of the required server, here some facts about the requirements and hints:

  • Each active receiving process needs about 1.6MB RAM.
  • Each active sending process needs about 1.7MB RAM.
  • The incoming and temporary filesystem must be at least this size free, the largest file to receive can be. I.e. if you want to receive a 250MB file, you need 250MB free in the temporary directory and also 250MB free in the incoming directory.
  • After correct transfer of a received file, it gets moved from the temporary directory to the incoming directory. To improve performance on this task, it's better to configure these directories in the same logical volume/partition, say: in the same filesystem.
  • In order to open more connections over TCP/IP, you have to configure the kernel parameter SOMAXCONN. On some modern Unix derivates this is possible on-the-fly. To take these changes effect you have to restart the OS4X receive daemon "os4xrd".
  • If you receive a MySQL error "no more connection allowed“ or "too many connections", you have to configure the MySQL server by increasing the value of max_connections in the configfile "my.cnf" in the section "[mysqld]". If this entry doesn't exist, insert a line in that section like "max_connections=800" (with appropriate value). You have to restart the MySQL server in order to take this change effect. Please take care about values above 1024!
  • If you expect any problems with the "overall statistics" (i.e. no graphic is returned from the web server), you might want to change the maximum length of the command line parameters passed by the shell. This could be done under AIX5L on-the-fly with the following command, where "1024" here is the amount of 4kB blocks allocated:
chdev -l sys0 -a ncargs=1024