52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 4465|敺: 0
銝銝銝駁 銝銝銝駁

[linux隞也 Linux 雿輻沉/O Scheduler靘隤踵渡′蝣I/O璅∪隞亙憭刪eadahead Cache靘憓稼1撘萄]

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2017-8-26 21:22:52 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
銝 擐隞蝝寧′蝣  I/O Scheduler( I. D& Z4 l0 d* L2 \
, V! w& r3 B8 [4 z, m* A

& O! B0 `$ s1 w' ~9 Q2 FI/O Scheduler臭暻潘Wiki隤芣:4 ~  Y8 U2 X; e/ i8 m& _
Input / Output Scheduling or I/O Scheduling is a term used to describe the method computer operating systems decide the order that block I/O operations will be submitted to storage volumes. I/O Scheduling is sometimes called 'disk scheduling'.
0 D' ^/ w) i3 `6 k0 I8 e0 H% X+ g  B+ ]* m1 _2 p  V. I
9 a: S) |8 c7 o' d: d: w
蝪∪桃隤迎撠望航臭誑蝬曹閮剖嚗靘啗矽渡蝣摮(I/O)璅∪銝蝔株身摰撌亙瑯
6 l  `0 C8 F4 t& n/ i
4 `) C' x2 J6 O- ~

% ]6 ^! |: b, ^  `3 U% F, J桀Linux舀游蝔埋/O Schedule璅∪嚗亦:+ O! t$ ?& L% @, o

0 w5 b. |8 P5 _  q( i
8 M) K3 N/ {8 _& r
Noop Scheduler (蝪∠迂noop) -- RIAD SSD 撱箄降雿輻 noop
$ e; R2 ~3 s8 [' K6 M臭誑蝞舀箸砌蝪∪Scheduler嚗銝餉冽潔鈭頛箇孵亦頠擃蝖祇剝雿啣銝哨銝鈭頠/蝖祇撌脩瑕芸楛I/O摮璈塚銝撠潛頂蝯望詨閬瘙頛撠嚗璅Scheduler瘥頛拙典典亙啣蝟餌絞銝准
* z- R# ]; H. y9 l6 `7 Q9 V' N8 E2 |% K1 U
+ {4 \) K8 v' S- l: Q

+ u) d6 g' ~+ G5 K) f" f4 g' H) dCompletely Fair Queuing (蝪∠迂cfq)+ t/ z" U5 ]4 N. x
憿批蝢抬撠蝖祉蝟餌絞冽閬I/O隞餃嚗蝯衣詨雿摨(Queuing)嚗璅Scheduler拙冽潔砌蝙刻獢銝餉衣雿啣嚗芸2006撟12Linux Kernel 2.6.18銝渲喃伐CFQ Scheduler銝湔烊inux詨閮剔 I/O scheduler  }, \3 T* E; U; X5 |
; H4 \8 e' F' n& C2 X

- S6 X* f0 h) p$ O- ~$ jAnticipatory Scheduling (蝪∠迂anticipatory)6 C# [9 V5 k$ f: c" `8 k
曄銝摨行烊inux 2.6 Kernel 閮 I/O Scheduler 嚗婢nticipatory (/) 摮閫靘嚗憒蝚砌I/O箇橘銝亦蝟餌絞蝚砌I/O隢瘙雿嚗Anticipatory Scheduling撠Y銝閮剝閬6瘥怎"皜"()嚗皜穿臬函皜祉洵鈭I/O隢瘙航隞暻潛函嚗璅皜祇單芋撘函撣豢折脰冽摮蝟餌絞扳頛憭抒撱園莎撠文嗆臬鞈摨恍璅蝟餌絞啣嚗雿銋嚗Anticipatory Scheduling撠澆蝬脤隡箸券璅蝟餌絞銵函曄貊嗅末6 l( w6 e' |; }+ g) `1 f

9 {2 L" c% c8 Y2 |( c( j
+ |+ a) L6 Y4 X' I6 A& K" E
Deadline Scheduler (蝪∠迂deadline) -- SATA 撱箄降雿輻 deadline3 z4 y7 ?; S. H& i0 z
銝餉Scheduler撠望舫撠Anticipatory Scheduling蝻粹靘脰孵嚗摰撠蝤蝣銝剔撣賊剖啣銝函撘嚗閮銝西ˊ雿蝚血撠撱園脫雿摨嚗璅蝯撠潸摨怎頂蝯梯賣靘游摮3 |' O) ^& p# h6 m/ Q- }* T1 O

1 Y' L, V* i* J7 P+ V' x

3 |+ U# x8 B2 e- `銝爹ed Hat Enterprise Linux 4 (2.6 Kernel) 剝Oracle10G鞈摨怨蝔埋/O Scheduler皜祈岫蝯 (鞈靘皞撅昱edhat砍豢)/ A9 j1 T! K9 b# |) E3 a
7 Z5 u- v: Z$ v, v! w

9 c! H* z# c, v% l/ J蝪∪桃閫鈭I/O Scheduler璅∪撌桃啣嚗臭誑撠銝脣閮剖靘剝銝I/O Scheduler脰賭隤踵∴擐曉啁恣I/O Scheduler蝟餌絞瑼獢嚗瑼獢舐牢at孵靘霈:
9 Z7 _0 p. F. x% G) E7 ^) w+ P( J" b. C+ `( o
0 T8 T  p5 i: w! q& r7 F" Q
#cat /sys/block/sda/queue/scheduler
) v5 K  P$ p- {; f$ O[noop] anticipatory deadline cfq! r8 }+ x3 ]) ^, F/ A

! |' ]$ l2 B9 O$ ?# n5 G. T4 n
# s2 R- h0 a0 |  B% i( x- a
敺銝靘嚗臭誑仿桀I/O Scheduler璅∪摸oop. (獢 [ ] )' ]) r# {  a' w0 {* V' U
. r5 ~. C& e$ r( ~# E( k7 m' M
" b1 k: d4 T. _. b+ P
仿閬脰靽格寡矽湛雿瘜拍車:# [8 A( K" m% q, O5 S2 Q3 v) O. G

" N. m& x  P! H* O3 e

$ B4 y$ x9 a. _0 T1 q1. 格活隤踵湛唾矽游喟嚗蝬庸cho隞支湔遐/O Scheduler璅∪4 s: a# N4 Y/ B1 Y( A% e1 ]. d
, e+ i8 o3 I; Z. G

2 |# i8 c/ @3 N% v#echo Deadline>/sys/block/sda/queue/scheduler
7 Y# m1 w% Q, Z+ E  U9 ?& [2 O/ o8 c( n6 F, U3 w. i( \, R1 m2 S4 i
* Q/ W- _) Z3 Q  f4 n
銝靘箏桀sda憿蝖祉I/O Scheduler湔寧慣eadline璅∪嚗孵典喟嚗雿圈璈敺啁頂蝯望詨暺隤I/O Scheduler璅∪
$ {8 t+ l, m1 D- T+ |: r" J0 O2 H8 T" ^
& I; e* C4 {+ @2 f) n+ A+ C! ?
2. 刻蝟餌絞璈脰隤踵渡:9 u0 P+ z& Q% z% i5 q
隞乩219 V7 e+ F9 O9 Q/ ^0 I- E/ Y* D  i
/etc/rc.local 批乩銵:
echo anticipatory > /sys/block/sdb/queue/scheduler
函頂蝯梁GRUB璈瑼獢銝哨敺銝銵銝elevator=deadline嚗喳舀潭甈⊿璈敺賭Deadline Scheduler雿璅∪嚗憒銝靘:$ X& O5 y" Z5 v
( r) g: N  T# k. L% @' r1 P
$ j" X7 [+ x4 Z/ Y! `
蝺刻摩 /boot/grub/grub.conf
7 I' {: ^% L- o7 R. G% U) w- h2 x5 a+ U6 ?+ {. o
: L5 ]2 \6 [( m$ L
title Fedora Core (2.6.9-5.0.3.EL_lustre.1.4.2custom)( |# @( R- f/ G' ?/ ~
root (hd0,0)( l9 n" f5 {- L2 b: h/ ^
kernel /vmlinuz-2.6.9-5.0.3.EL_lustre.1.4.2custom ro0 z1 T8 S/ H- W3 q. \+ _
root=/dev/VolGroup00/LogVol00 rhgb noapic quiet elevator=deadline
4 Y% X# K2 ~! Q# r: j
. p6 c( W7 x# c% F
: L: o  O, m5 v! q9 N
, S/ Z( s# Q9 q' \. k

) D& r0 d  a3 @% j& y2 d, R5 p; W% _鈭 乩靘舐′蝣 Readahead 敹怠
6 ^3 J( G7 _$ X4 j* Z6 ]$ V. m% s/ \- B! l5 r
' N  G1 D; f% B3 V, G1 N7 h
其遢撠望頛摰寞閫嚗蝬梁頂蝯梁蝣霈閮剖靘霈踝蝬梯矽嵇eadahead Sectors憭批靘憓脩頂蝯梁蝣霈賢榆堆撠望航矽∠銝餉桃, f6 l: J1 {6 K) ]* C- G8 z- z' e2 [
4 u* x/ }6 Z' Q8 [4 ~' J* p5 b
! m( K7 E2 R7 L" l2 X4 Y% o
蝬尉inux蝟餌絞隞: blockdev 靘瑼Z桀sda蝖祉Readahead Sectors憭批嚗蝭靘憒銝/ s5 i1 l) S+ O6 R, h& v$ j
* f$ v9 ?1 ~! }! M9 j7 n1 X

9 w7 v  X6 P2 m; i8 f4 ]( ^#blockdev --getra /dev/sda   (蝟餌絞閮剜256M)
# C4 n+ w1 E9 b) ?/ l1 }512  P' ]+ R2 }4 e0 E6 g5 S" b0 H
! _7 x4 N8 v0 N+ Y& C/ a
& @, o7 s. G/ b3 e2 s
蝬梯矽游訾蒂撣嗅兄ectors憭批嚗靘脰質矽湛蝭靘憒銝:
+ X5 w% I/ f: ]5 X3 ~4 c) x, l: D, \
. }. _/ X% b3 L
#blockdev --setra 4096 /dev/sda
- R0 K* _1 V, W/ b" g9 |9 H, y0 O, P4 h  W1 q' ?* K7 |

5 [, s# S7 H4 C6 O9 R4 h#blockdev --getra /dev/sda* R- H/ D3 [+ |! t
4096. \! W# p6 S  Z) f& ^! e

( J1 G. P2 v- v  n% C9 {$ u1 h7 a* L
刻蝟餌絞璈芸閮剖:
' C2 a3 u5 H6 n) l /etc/rc.local 批乩銵:/ G8 A& @. C- ^, x; r& B# r
blockdev --setra 4096 /dev/sda
8 d* D; g0 G0 j0 O4 ~
5 t1 R) w* [6 W  H; Q! P0 p. j4 {
蝬拍車蝖祉質矽∠撠寞嚗舀賢典祈賢停瘥頛撌桃蝖祇啣銋銝嚗憭憯璁典箔鈭霈賬
4 i: L1 \  v+ G- f# d  S* a! y; \+ J撖虫:隞亙鈕erver敺憭撌乩,靘憒 ffmpeg, php(move_uploaded_file)銝喳之瑼獢 ,tar , mv 憭抒瑼獢,雿撟曆∩,摰典銝鈭,蝬銝餈啁隤踵,憿摰刻圾瘙' v4 D0 J. Q( n- |! e# g
* I$ g3 @5 H: }, H
血,sysctl.conf隤踵銋舀撟怠拍
( g" I0 _3 f" W

+ M2 u2 `1 T) ?5 z* d/ M' C8 U: t# g& B. V" w, U! R& @6 S5 i0 ?
靘皞:
! R8 j, \6 M5 |- |: k* e- G9 }- R/ Q8 P9 v7 w" V) S  O  ?
http://itstorage.storageforum.tw ... eadahead-cache.html
5 ^, {  m5 R* u# I0 Q

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-24 04:13 , Processed in 0.061668 second(s), 19 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵