atitit.提升備份檔案複製速度(1) -----分析統計問題and解決方案

來源:互聯網
上載者:User

atitit.提升備份檔案複製速度(1) -----分析統計問題and解決方案

1. 現在的情形 1

2. 硬碟資訊 大概50mb/s, 50iops 1

3. 統計小的檔案比率 2

4. 複製速度估計.. 2

5. 小檔案類型比率按照副檔名 2

6. 速度慢的原因:::iops太低的... 4

7. 解決之道::: 4

7.1. 提升到ssd 硬碟. 4

7.2. 清理垃圾 4

7.3. 清理重複檔案 5

7.4. 移動pic/isho檔案.. 5

7.5. 打包檔案.. . 5

8. 清理後的情形 5

9. 硬碟詳細速度測試報告80g+160G 5

 

SELECT * FROM `foldercount` where file not in (select file from foldercountclraftr ) 

  1. 現在的情形

 

10.6g  , 40370個檔案. 2894個檔案夾.....兩個硬碟中間複製使用了19min

 

複製要好長時候..從pc電腦到移動硬碟.,硬碟都是通常硬碟..usb電線是2.0的,可以支援40MB/s,,所以,速度問題不在這個地方...

應該是iops不足...

 

 

  2. 硬碟資訊 大概50mb/s, 50iops

要以最慢的那個硬碟計算了...

 

 

作者:: 老哇的爪子 Attilax 艾龍,  EMAIL:1466519819@qq.com

轉載請註明來源: http://blog.csdn.net/attilax

  3. 統計小的檔案比率

走十馬個工具,,只好嘎自寫蘭...

遍曆檔案夾,不個檔案名稱,尺寸, java 17s走產生sql蘭...放得個資料庫黑頭...在統計...

範圍:::  0-----500KB,  500Kb--1.5M ,1.5 M ......

1M 在下面按照radom rw .....  1Mabover  按照 順序io rw

select COUNT(*) from foldercount where  size<500000   >>>38320

select COUNT(*) from foldercount where size<1500000 and size>500000   >> 694

-----大的檔案..

select COUNT(*) from foldercount where size>1500000  >>687   

select sum(size) from foldercount where size>1500000   9605MB

 

 

 

 

 

別的ehr

select COUNT(*) from foldercount where  size<20000   >>>25530 個檔案.

 

  4. 複製速度估計..

Lit file less than 500kb copy   38320/50iops=13Min 

Lit file 500---1.5MB :::     694/30 iops=23S

Big file copy  10G/50mps=3.2Min  

 

  5. 小檔案類型比率按照副檔名

select COUNT(*) from foldercount where  size<20000   >>>25530 個檔案.

 

select count(*) sum,extname from foldercount where  size<20000 GROUP BY extname HAVING sum>5  order by sum DESC

5732 gif   ok

3150 jpg   ok

2506 htm     ok

2426 js ok

1991 txt     ok

1067 cs     ok

1015 css    ok

1010

888 png    ok

589 URL   ok

484 vcf   ok.

440 php   ok

342 aspx   ok

256 class    ok

230 html

225 java

184 Old

153 swf

131 lnk

125 resx

111 Extra

104 dat

103 doc

96 rar

91 xls

81 dll

79 xml

75 resources

74 ps

68 jsp

62 bat

59 ico

55 sql

54 she

54 ssk

53 9]

52 ashx

50 7]

47 jpeg

45 scc

43 tlog

40 cache

39 ahk

38 bak

30 asp

29 csproj

29 log

28 config

27 docx

27 csv

27 json

27 5]

25 refresh

25 zip

25 bmp

25 2]

25 10]

24 1]

23 exe

22 reg

22 s

21 map

20 jar

19 sln

17 user

17 db

16 thmx

16 data

15 xsd

15 tab

15 h

14 vbs

14 ini

12 settings

10 ascx

10 tpl

10 CFG

9 manifest

9 suo 6.   速度慢的原因:::iops太低的... 7. 解決之道::: 7.1. 提升到ssd 硬碟.

Ssd的iops常常是普通硬碟的20倍多... 7.2. 清理垃圾 

垃圾 csv ,,svn  垃圾檔案夾...大小還大的...刪除...

 

垃圾圖片的規則

Gif 

Jpg::width/height 過小的..size 大小過小的180*180在下面...pc圖片(馬中繼資料)

  7.3. 清理重複檔案 7.4. 移動pic/isho檔案.. 7.5.  打包檔案.. .

 

可以use winrar  tag 到per 檔案夾..

 

  8. 清理後的情形

 

Ori 10.6g  , 40370個檔案. 2894個檔案夾

而個 10.1g...File  14378  ,,  folder   1459  9. 硬碟詳細速度測試報告80g+160G

HD Tune Pro: ST380815A File Benchmark  80g

 

Drive C:  

 

傳輸速率測試

 

檔案大小: 500 MB

 

Sequential read 55074KB/秒

寫入循序 50811KB/秒

隨機讀取 137 IOPS

隨機寫入 300 IOPS

Random read (queue depth = 32) 154 IOPS

Random write (queue depth = 32) 258 IOPS

 

 

HD Tune Pro: WDC WD1600AAJS-00B8D File Benchmark  160g

 

Drive U:

 

傳輸速率測試

 

檔案大小: 500 MB

 

Sequential read 99937KB/秒

寫入循序 91575KB/秒

隨機讀取 104 IOPS

隨機寫入 340 IOPS

Random read (queue depth = 32) 150 IOPS

Random write (queue depth = 32) 323 IOPS

 

 

 

HD Tune Pro: ST380815A Random Access

 

Test capacity: full

 

Read test

 

Transfer size operations / sec avg. access time max. access time avg. speed

512 位元組

4 KB 59 IOPS 16.740 ms 72.026 ms 0.233 MB/秒

64 KB 57 IOPS 17.410 ms 42.229 ms 3.590 MB/秒

1 MB 29 IOPS 33.651 ms 60.259 ms 29.716 MB/秒

Random 36 IOPS 27.175 ms 89.132 ms 18.857 MB/秒

 

 

HD Tune Pro: WDC WD1600AAJS-00B8D Random Access

 

Test capacity: full

 

Read test

 

Transfer size operations / sec avg. access time max. access time avg. speed

512 位元組

4 KB 57 IOPS 17.303 ms 653.923 ms 0.226 MB/秒

64 KB 52 IOPS 18.937 ms 297.883 ms 3.300 MB/秒

1 MB 34 IOPS 29.347 ms 308.293 ms 34.075 MB/秒

Random 41 IOPS 23.852 ms 308.929 ms 21.484 MB/秒

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.