:: increase semaphores

22 sec read

:: How to check semaphores

ipcs -a

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x00000000 65536      daemon     600        1
0x00000000 98305      daemon     600        1

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages    

 
:: How to check the value of semaphores on Linux

/sbin/sysctl -a | grep sem
kernel.sem = 250	256000	32	1024

 
:: How to increase semaphores on Linux
+ Live and temporary (gone after reboot)

sysctl -w kernel.sem=500
kernel.sem = 500

/sbin/sysctl -a | grep sem
kernel.sem = 500	256000	32	1024

+ Persist

vi /etc/sysctl.conf
## add this line
kernel.sem = 500 256000 32 1024

 
:: Links
+ Google
+ GNUFreakZ

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *