DOI QR코드

DOI QR Code

General Web Cache Implementation Using NIO

NIO를 이용한 범용 웹 캐시 구현

  • Lee, Chul-Hui (Department of Computer Science & Engineering, Seoul National University of Science and Technology) ;
  • Shin, Yong-Hyeon (Department of Computer Science & Engineering, Seoul National University of Science and Technology)
  • 이철희 (서울과학기술대학교 컴퓨터공학과) ;
  • 신용현 (서울과학기술대학교 컴퓨터공학과)
  • Received : 2016.01.26
  • Accepted : 2016.02.18
  • Published : 2016.02.28

Abstract

Network traffic is increased rapidly, due to mobile and social network, such as smartphones and facebook, in recent web environment. In this paper, we improved web response time of existing system using direct buffer of NIO and DMA. This solved the disadvantage of JAVA, such as CPU performance reduction due to the blocking of I/O, garbage collection of buffer. Key values circulated many data due to priority change put on a hash map operated easily and apply a priority modification algorithm. Large response data is separated and stored at a fast direct buffer and improved performance. This paper showed that the proposed method using NIO was much improved performance, in many test situations of cache hit and cache miss.

최근의 웹 환경은 스마트폰과 같은 모바일, 페이스북과 같은 소셜 네트워크의 증가로 인하여 네트워크의 트래픽이 급격히 증가하고 있다. 본 논문에서는 WAS(web application server)의 애플리케이션에서 기존 자바의 단점인 I/O의 블로킹(blocking)과 버퍼에 가비지 컬렉션 (garbage collection)으로 인한 CPU 성능 감소 등의 문제를 NIO (non-blocking IO)의 다이렉트 버퍼와 DMA (direct memory access)를 이용하여 기존 시스템의 웹 응답 속도를 향상시켰다. 우선순위 변동 등으로 상대적으로 데이터 순환이 많은 키값은 조작이 용이한 해시맵에 담아 캐시 우선순위 변경 알고리즘을 적용한다. 용량이 큰 응답 데이터는 속도가 빠른 다이렉트 버퍼에 분리 저장하여 성능을 높인다. 캐시 적중 시와 적중이 안 될 경우의 여러 상황에서의 실험을 통해 본 논문에서 제안한 NIO를 이용한 방법이 많은 성능 향상을 보여줌을 확인할 수 있다.

Keywords

References

  1. Cisco Visual Networking Index. Global Mobile Data Traffic Forecast Update 2013-2018 White Paper: [Internet]. Available: https://www.cisco.com/web/KR/pdf/cisco_vni_fore cast_ qa.pdf
  2. Cisco Visual Networking Index:Global Mobile Data Traffic Forecast Update,2014-2019: [Internet]. Available: http://www.cisco.com/c/en/us/solutions/collateral/service-provider/visual-networking-index-vni/white_paper_c11-520862.pdf
  3. T. Y. Kuo, Y. S. Chung, and J. Y. Park, "Cache layout management for reducing network traffic," in Korea Information Science Society Conference, Jeju: Korea, pp. 249-250, Jun.2012.
  4. H. Al-Zoubi, A. Milenkovic and M. Milenkovic, "Performance evaluation of cache replacement policies for the SPEC CPU2000 benchmark suite," in Proceedings of the 42th Annual Southeast Regional Conference, New York: NY, pp 267-272, 2004.
  5. C. Y. Chang, T. Mcgregor and G. Holmes, "The LRU$^*$WWW proxy cache document replacement algorithm," in Proceedings of the Asia Pacific Web Conference, Hong Kong: China, 1999.
  6. P. R. Wilson, Uniprocessor Garbage Collection Techniques, Technical report, University of Texas, Jan 1994. Expanded version of the IWMM92 paper.
  7. P. Cheng, G. E. Blelloch, "A parallel, real-time garbage collector," in Proceedings of the ACM SIGPLAN Conference on Programming Design and Implementation, New York: NY, pp. 125-136, 2001.

Cited by

  1. The Development of Monitoring System for PC and Server State Management vol.20, pp.9, 2016, https://doi.org/10.6109/jkiice.2016.20.9.1741