Study

pchero on November 13th, 2015

왜 ps 와 top 은 서로 다른 cpu 사용률을 보여주는 것일까? 결론부터 이야기하면, top 과 ps 는 서로 다른 명령어이다. top 은 우리가 흔히 생각하는 cpu 사용률을 보여주는 것이 맞지만, ps 는 약간 다른 부분을 보여준다. 다음은 ps 명령어의 man page 의 일부분이다. CPU usage is currently expressed as the percentage of time spent running […]

Continue reading about Why top and ps not showing the same cpu result

pchero on September 2nd, 2015

늘 있는 일이었지만, 특별히 더 이상한 일이었다. 분명히 발생하는 장애였다. 하지만 늘 그랬듯이 불규칙적이었고, 재현이 불가능하였다. 사건의 발생은, 고객사 중 하나에서 “정상적으로 음성메시지를 남겨도, 실제로 음성 메시지를 플레이 할 때는, 아무 소리가 안난다”는 것이었다. 가볍게 생각했다. record 함수의 잘못된 사용이나, 녹음할 데이터가 없었거나….   일단, 로그 파일부터 확인했다. /var/log/freeswitch/freeswitch.log 먼저 문제가 발생한 케이스를 추려내고, 그 […]

Continue reading about SIP/RTP initiation bug

pchero on July 3rd, 2015

Ubuntu-14.10 공식 지원 기간이 종료된다. LTS가 아닌 배포 버전들은 9개월의 공식 지원 기간을 가지게 된다. 종료 시기는 2015.07.23. 출처 : http://ubuntuforums.org/showthread.php?t=2285116

Continue reading about Ubuntu-14.10 Support ends

pchero on June 13th, 2015

아파치에 ssl 설정을 하고 https 접속을 하려는데 다음의 오류가 나왔다. Secure Connection Failed An error occurred during a connection to pchero21.com. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long) The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. […]

Continue reading about apache ssl enable problem

pchero on June 2nd, 2015

Linux 에서 캐시된 메모리를 어떻게 정리할 수 있을까? 결론적으로 세 가지 방법으로 캐시된 메모리 삭제가 가능하다. 1. 페이지 캐시 해제 2. 해제 가능 오브젝트(dentry, inode) 해제 – dentry에 대해서는 여기(http://unix.stackexchange.com/questions/4402/what-is-a-superblock-inode-dentry-and-a-file)를 참조하자. 3. 해제 가능 오브젝트 + 페이지 캐시 해제 아래는 캐시된 메모리 해제와 관련한 자세한 내용이다.(https://www.kernel.org/doc/Documentation/sysctl/vm.txt) drop_caches Writing to this will cause the kernel to […]

Continue reading about How to clear memory cache in Linux