Design and Implementation for Performance Optimizing of Small File for SQUID Storage System
- Author
- WangLingHui
- Advisor
- LiXiaoYong
- School
- Shanghai Jiaotong University
- Major
- Computer technology
- Classification
- TP333 Memory
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 126
- Citations
- 1
Abstract
Boosting web browsing speed and optimizing user experience are a common challenge and long-term task for all internet service providers. As a fundamental method to improve web service, proxy servers have been highly regarded in industry.Squid is a typical and the most widely used proxy server in the world, supporting data object proxy of HTTP, FTP and other web protocols. It also supports multiple access control lists and various operating systems. Squid reduces bandwidth and improves response speed by caching and reusing frequently-requested web pages.In this paper, we made a comprehensive research on the small file cache of Squid, designed and implemented algorithms that can effectively identify hot data and increase cache hit rate. We also implemented the software modules. The main works of this paper are as follows:(1)We start this paper by argueing common methods to improve web service quality, and we introduce proxy servers and analysis the existing storage systems for small files and measures to optimize performances of mass small file storage.(2)We evaluate the system architecture and principles of implementing Squid. Particularly, we analysis the Coss storage module and raise some key points in small file storage.(3)We design and implement a tiered cache scheme for hot and cold data. We describe and implement Relocation Cache method.(4)We argue the key question of discerning hot data in tiered cache and after compare some popular schemes of hot data discerning, we proposed a self-adaptive sliding window scheme, which can further boost the system performance. (5)Using several web proxy server benchmarks, we test and analysis the system before it is optimized, after it is optimized for the first time and after it is optimized for the second time.These tests indicate that the optimized Coss storage system can cache hot data more effectively when facing a heavy access of small files. Therefore, this scheme can reduce the number of disk operations and improve the overall system performance. The findings of this paper are of high reference value to other mass small file storage system designs.
Table of contents
Summary 5-7
ABSTRACT 7-9
directory 9-12
LIST 12-13
Table directory 13-14
first chapter 14-22
1.1 background 14-16
1.2 Research Status 16 - 19
1.3 The main 19-21
1.4 thesis structure 21-22
Chapter Two small file storage optimization 22-30 <br / > 2.1 introduced a small file storage optimization studies 22
2.2 small file storage problems 22-23
2.3 typical small file storage system 23 - 27
2.3.1 C-FFS 23-24
2.3.2 ReiserFS 24-25
2.3.3 Facebook 's photo storage system 25 -27
2.4 small file storage optimization 27-29
2.4.1 improvements catalog indexing mechanism 27
2.4.2 improve Cache hit rate 27 -28
2.4.3 improve the efficiency of disk access 28-29
2.5 Summary 29-30
Chapter SQUID proxy analysis 30 introduction -47
3.1 SQUID proxy server 30-31
3.2 SQUID internal processing framework and process analysis 31-35
3.3 SQUID cache replacement mechanism 35-38
3.3.1 replace timing 35
3.3.2 cache replacement algorithm 35-37
realize 3.3.3 Squid replace mechanism 37-38
3.4 SQUID storage mechanism 38-40
3.4.1 Ufs storage mechanism 38
3.4.2 Aufs storage mechanism 38-39
3.4.3 Diskd storage mechanism 39-40
3.4.4 Coss storage mechanism 40
analysis 3.5 COSS file system 40 -46
3.5.1 Coss storage characterization 40-41
3.5.2 Coss literacy process 41-45
3.5.3 Coss 's Relocation mechanism 45-46
3.5.4 Coss use summary 46
3.6 summary 46-47
Chapter IV RELOCATION CACHE design and achieve 47-62
introduced 4.1 RELOCATION CACHE method 47-48
design nbsp 4.2 RELOCATION CACHE method ; 48-50
4.3 RELOCATION CACHE methods realization 50-61
4.3.1 Squid critical data structures 50-53
4.3.2 Relocation Cache data structure 53-55 <br / > 4.3.3 modules 55-57
4.3.4 strategy nbsp Relocation Cache use ; 57-59
4.3.5 Relocation Cache read and write processes 59-61
4.4 Summary 61-62
Chapter RELOCATION CACHE optimization of 62-70
5.1 Relocation Cache methods lack analysis of 62
5.2 of existing hot and cold data identification mechanism 62-67
5.2.1 multiple LRU list 62-63
5.2.2 multi- hash calculate the 63-64
5.2.3 bloom filter based on multiple data identifying hotspots 64-65
5.2.4 WDAC 65-67
5.3 Relocation Cache optimization method 67-69
5.4 Summary 69-70
Chapter VI performance test 70-78
6.1 Squid has some performance evaluation 70
6.2 testing purposes 70-71
6.3 test environment 71-72
6.4 test Method 72 - 73
6.5 test results and analysis 73-78
6.5.1 test results and analysis throughput tests 73-74
6.5.2 hit rate and analysis 74-76
6.5.3 test results and Analysis request processing time 76-78
Chapter VII summary and Outlook 78-80 <br / > 7.1 This article summarizes 78
7.2 Prospect 78-80
References 80-84
Thanks 84-85 < br /> during the master's degree has been published or accepted papers 85
Related dissertations
- Case Research on the Production Logistics Management of Dalian PRK Company
- A Research and Implementation with Improved K-Means Clustering Algorithm to Image Retrieval System Based on Hadoop Platform
- The Design and Implementation of Telecom Card Management Based on J2EE
- Warehouse Management System
- The Design of Storage and Backup Architecture Based on Stress Transfer Mode
- Research on Efficient Provenance Storage
- The Implementation of New Memory Burn-in Test System
- Hunan Western Paintings
- Evaluation on Quality of Rhubarb Seeds and Herbs
- Studies on Pollen Viability, Storage Method and Effect of Radioactive Breeding on Seeds Germination of Lagerstroemia indica
- Effects of Nitrogen on Productivity and Quality of Cuttings in Cut Chrysanthemum
- Study on Physiological Mechanism of Storage Property of Fresh Jujube in South China
- Studies on the Change of Main Nutrients Contents in Maturity and Storage Period of Fresh Walnut
- Study on Storage Quality and Physiological and Biochemical Indexes of Hongyang Kiwifruit as Influenced by Ca-EDTA
- Study on the Effects and Mechanism of UV-C Irradiation on Ripening in Postharvest Cherry Tomato Fruit
- The Degradation of Exogenous Element in Sotrage and Processing of Genetically Modified Soybean
- The Effect of Nitrogen Fertilizerapplication on Rice Yields and Quality and the Research of Rice Storage Features
- Development and Application of Grain Insecticide Based on Essential Oil
- Effects of H2S on Post-harvest Diseases and Storage of Dangshan Pear
- The Effect of Temperature Fluctuation on Stored-Wheat Safe Moisture Content and Microbial Activity