2월, 2013의 게시물 표시

Eknet, My newer network module

I wrote a newer network module, Eknet. E stands for Epoll of Linux, and k stands for Kqueue of BSD. This could be considered as the improved version of IOCPNet which I wrote about 6 years ago. The very high performance network module for Linux, BSD, Mac OSX. I will open Eknet to the public with my another proper product.

when compiling apache in osx (moutain lion), can't find gcc(g++)

sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain

how to increase the number of file descriptors

(from : http://b.oldhu.com/2012/07/19/increase-tcp-max-connections-on-mac-os-x/) Increase TCP max connections on Mac OS X 19 July 2012 Reason I was trying to benchmark a TCP based file server on Mac OS X. The server is running latest Node.js (0.8.2), while the client to push the server is written in go . ‘Go’ can start thousands of concurrent goroutines easily. I got error when there are hundreds of concurrent clients. Steps increate max open files $ sysctl -a | grep files kern.maxfiles = 12288 kern.maxfilesperproc = 10240 kern.maxfiles and kern.maxfilesperproc were small numbers, they need to be increased: $ sudo sysctl -w kern.maxfiles=12288 $ sudo sysctl -w kern.maxfilesperproc=10240 after this, you can increase your account’s limit by ulimit -n: $ ulimit -n 10240 increate max sockets $ sysctl -a | grep somax kern.ipc.somaxconn: 2048 It was a small number and need to be increased: $ sudo sysctl -w kern.ipc.somaxconn=2048 from : http://d

Linux Increase The Maximum Number Of Open Files / File Descriptors (FD) (by nixCraft)

Linux Increase The Maximum Number Of Open Files / File Descriptors (FD) (by nixCraft on April 18, 2006 · 44 comments · last updated at May 6, 2010) How do I increase the maximum number of open files under CentOS Linux? How do I open more file descriptors under Linux? The ulimit command provides control over the resources available to the shell and/or to processes started by it, on systems that allow such control. The maximum number of open file descriptors displayed with following command (login as the root user). Command To List Number Of Open File Descriptors Use the following command command to display maximum number of open file descriptors: cat /proc/sys/fs/file-max Output: 75000 75000 files normal user can have open in single login session. To see the hard and soft values, issue the command as follows: # ulimit -Hn # ulimit -Sn To see the hard and soft values for httpd or oracle user, issue the command as follows: # su - username In this example, su to o

How to increase FD in OSX

$ sysctl kern.maxfiles kern.maxfiles: 12288 $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 10240 $ sudo sysctl -w kern.maxfiles=1048600 kern.maxfiles: 12288 -> 1048600 $ sudo sysctl -w kern.maxfilesperproc=1048576 kern.maxfilesperproc: 10240 -> 1048576 $ ulimit -n 256 $ ulimit -n 1048576 $ ulimit -n 1048576

How to set so directory (linux lib***.so.2 load problem)

How to set so directory (linux lib***.so.2 load problem) 1. edit this file (/etc/ld.so.conf) with vi. add the directory which the shared objects (lib*.so.*). 2. call ldconfig, in order to load the setting. Bye!
Milk Store I've read a book the Miracle of Namiya's (Miscellaneous Store). So I've got a great hint from the book for the service which I want to try to build up~!