HP-UX
1752579 회원
3350 온라인
108788 솔루션
새 메시지

poll() 이 무엇일까요?

 
권태삼_1
비정기 기여자

poll() 이 무엇일까요?



SQL : select * from v$session;



두개의 장비에서 동일 sql 문을 실행했는데

sql 실행 속도 차이가 나서 tusc 결과를 뽑았습니다.

그런데 속도가 느린 장비에서는 poll() 이 많이 발생합니다.



이와같이 발생하는 현상이 어떠할때 발생하는지와,

poll()이라는거 무엇인지 궁금합니다.





1. select 받아서 곧바로 뿌림.



16:48:42 read(0, "s e l e c t * f r o m v $ ".., 8192) ................................................ = 25

// 중략

16:48:42 write(1, "\n", 1) .................................................................................. = 1

16:48:42 write(1, "S A D D R \t\t\tS I D S ".., 47) ................................................. = 47

16:48:42 write(1, "- - - - - - - - - - - - - - - - ".., 78) ........................

......................... = 78



2. 중간에 poll system call 이 계속 있음.



16:44:31 read(0, "s e l e c t * f r o m v $ ".., 8192) ......................

.......................... = 25

//중략

16:44:31 poll(0x800003ffbfff8c9c, 1, 0) ..................................................................... = 0

16:44:31 poll(0x800003ffbfff8c9c, 1, 0) .................................................

.................... = 0

16:44:31 poll(0x800003ffbfff8c9c, 1, 0) ..................................................................... = 0

16:44:31 poll(0x800003ffbfff8c9c, 1, 0) .............................................................

........ = 0

// 중략

16:44:32 write(1, "\n", 1) .................................................................................. = 1

16:44:32 write(1, "S A D D R \t\t\tS I D S ".., 47) ..............................................

... = 47



1 응답 1
monoworld
정기 조언자

poll() 이 무엇일까요?

특별한 답은 없고 poll에 대한 정의 입니다.



poll()

provides a general mechanism for reporting I/O conditions associated with a set of file descriptors and for waiting until one or more specified conditions becomes true. Specified conditions include the ability to read or write data without blocking, and error conditions.