purewell의 블로그

purewell의 이미지

컴파일이 한 번에 될꺼라 생각하나?

10년 넘게 C(또는 C++)를 다뤄왔지만 마음 속 깊은 곳에 언제나 있는 말이 있다.

"컴파일은 한 번에 되지 않는다"

'오~!! 완벽해!!' 라고 생각하고 컴파일러를 돌려도 언제나 손쉬운 오류 - 예를 들면 철자를 틀리는 - 를 여지 없이 범한다.
이제는 한 번에 컴파일되면 불안하다. :$

그래서 예부터 한 번

purewell의 이미지

Netstat: "warning, got duplicate tcp line"

Issue:
What does "warning, got duplicate tcp line" mean in the output of netstat?

Resolution:

In certain unique situations the output of the netstat command may produce output similar to below:

tcp 0 0 X.X.X.X:80 X.X.X.X:1035 TIME_WAIT
tcp 0 0 X.X.X.X:80 X.X.X.X:2028 TIME_WAIT
warning, got duplicate tcp line
warning, got duplicate tcp line

Another incarnation of the same issue is:

purewell의 이미지

RAID 1

 Mirroring and Duplexing


For Highest performance, the controller must be able to perform two concurrent separate Reads per mirrored pair or two duplicate Writes per mirrored pair.


RAID Level 1 requires a minimum of 2 drives to implement



Characteristics & Advantages


One Write or two Reads possible per mirrored pair


Twice the Read transaction rate of single disks, same Write transaction rate as single disks

purewell의 이미지

RAID 0

 

RAID Level 0 requires a minimum of 2 drives to implement

Characteristics & Advantages


RAID 0 implements a striped disk array, the data is broken down into
blocks and each block is written to a separate disk drive

I/O performance is greatly improved by spreading the I/O load across many channels and drives

purewell의 이미지

swap을 많이 쓰게 되면 소켓 I/O에 문제가 생긴다??

아직 이렇다할 실마리가 잡히지 않은 상태다.

Linux 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686 i686 i386 GNU/Linux
RAM : 2G
Swap: 4G

해당 프로세스는 단일스레드 프로그램이며 소켓을 사용하고(연결 객체는 그리 많지 않다), 메모리 괴물이다. - 거의 1.6기가? 2기가? 정도 먹는다.

실메모리의 절반을 스왑이 쓰고 있을 때, 이 프로세스는 마치 인터럽트에 걸린 것처럼 옴짝달짝하지 않고 있는다.

purewell의 이미지

PHP 5.1.0 Released!

바뀐 것

Quote:
24-Nov-2005
Added support for class constants and static members for internal classes. (Dmitry, Michael Wallner)
Added "new_link" parameter to mssql_connect() (Bug #34369). (Frank)
Added missing safe_mode checks for image* functions and cURL. (Ilia)
Added missing safe_mode/open_basedir checks for file uploads. (Ilia)
Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql. (Ilia)
Added date_timezone_set() function to set the timezone that the date functions will use. (Derick)
Added pg_fetch_all_columns() function to fetch all values of a column from a result cursor. (Ilia)
RSS - purewell의 블로그 구독하기