#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2009
    Posts
    74
    Rep Power
    6

    How to configure CPU affinity on Superserver (Linux)


    Is this possible anyway, based on the character of Linux?

    Following the Firebird.conf file of the Superserver version CPU affinity:

    # ===========================
    # SuperServer Engine Settings
    # ===========================
    #
    # ----------------------------
    # Which CPUs should be used (Windows Only)
    #
    # In an SMP system, sets which processors can be used by the server.
    # The value is taken from a bit map in which each bit represents a CPU.
    # Thus, to use only the first processor, the value is 1. To use both
    # CPU 1 and CPU 2, the value is 3. To use CPU 2 and CPU 3, the value
    # is 6. The default value is 1.
    #
    # Type: integer
    #
    #CpuAffinityMask = 1

    So on Linux this setting can not be used?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2006
    Location
    Plovdiv. Bulgaria
    Posts
    226
    Rep Power
    13
    As far as I know this option is for Windows because there was a problem with the OS.
    Some addition information about that: Link
    With Linux there is no such problem. It's left for kernel to decide what to do.

    Comments on this post

    • mariuz agrees : I agree Linux Superserver ignores CpuAffinityMask.
    Last edited by mIRCata; December 28th, 2011 at 10:49 AM.
  4. #3
  5. Bug Hunter
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    Transylvania (Romania)
    Posts
    309
    Rep Power
    24

    But you can change it from linux


    Originally Posted by rapgame
    Is this possible anyway, based on the character of Linux?



    So on Linux this setting can not be used?
    It is possible in linux to set the cpu affinity with taskset

    http://stasikos-en.blogspot.com/2008...inity-smp.html

    http://man.yolinux.com/cgi-bin/man2h...ommand=taskset
    My home page: http://www.firebirdsql.org and work place :http://www.reea.net

IMN logo majestic logo threadwatch logo seochat tools logo