Annotation of wikisrc/examples/configuration_examples.mdwn, revision 1.1

1.1     ! mspo        1: This article aims to show configuration examples for common configurations. Configuration examples for [[login.conf]], [[sysctl.conf]] or specific parameters required to [[newfs]] for particular setups belong here, but the article should not become a configuration files gallery for every setup. It also does not aim to explain every detail of the configuration. Links should be provided to the relevant detailed documentation. 
        !             2: 
        !             3: 
        !             4: For performance-oriented configuration details, also see [[Tuning NetBSD for performance]]. 
        !             5: 
        !             6: 
        !             7: This article is a work in progress. 
        !             8: 
        !             9: #  Desktop PC 
        !            10: 
        !            11: Generally, desktop systems run applications which heavily require executable and stack pages. Part of the file buffer cache may be sacrificed in most cases to permit the system to keep more executable pages in live memory. 
        !            12: 
        !            13: sysctl.conf: 
        !            14:     
        !            15:     vm.execmin=14
        !            16:     vm.filemin=1
        !            17:     vm.execmax=70
        !            18:     vm.filemax=10
        !            19:     kern.maxvnodes=32768
        !            20:     
        !            21: 
        !            22: login.conf: 
        !            23:     
        !            24:     default|:\
        !            25:             :datasize=256M:\
        !            26:             :memoryuse=256M:\
        !            27:             :stacksize=64M:\
        !            28:             :maxproc=2048:\
        !            29:             :openfiles=2048:\
        !            30:             :priority=-1:
        !            31:     
        !            32: 
        !            33: kernel configuration: 
        !            34:     
        !            35:     options         SHMMAXPGS=32768 # 2048 pages is the default
        !            36:     
        !            37: 
        !            38:   
        !            39: 
        !            40: 
        !            41: #  Database server 
        !            42: 
        !            43: ##  PostgreSQL
        !            44: 
        !            45: PostgreSQL recommends the following in its documentation: 
        !            46:     
        !            47:     options        SYSVSHM
        !            48:     options        SHMMAXPGS=4096
        !            49:     options        SHMSEG=256
        !            50:     
        !            51:     options        SYSVSEM
        !            52:     options        SEMMNI=256
        !            53:     options        SEMMNS=512
        !            54:     options        SEMMNU=256
        !            55:     options        SEMMAP=256
        !            56:     
        !            57: 
        !            58: Also recommends to enable **kern.ipc.shm_use_phys**. 
        !            59: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb