52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2017-8-26 21:22:52 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
銝 擐隞蝝寧′蝣  I/O Scheduler! w8 ~9 o4 p( w9 n, R7 K: c, D
4 c4 A" u2 _# F4 b9 W; x
3 R4 \& C! u  t
I/O Scheduler臭暻潘Wiki隤芣:
! l; Z7 W$ y) X8 W" t8 Q# K9 jInput / 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'.1 Y: `; I4 S* [2 Q9 D

. I, e, e7 ~/ M3 B4 @* s

. n2 r: G# F' @9 P/ G2 p蝪∪桃隤迎撠望航臭誑蝬曹閮剖嚗靘啗矽渡蝣摮(I/O)璅∪銝蝔株身摰撌亙瑯+ J2 y# U$ @8 ?( q7 W

" f; F  @0 e( f" [5 M+ v! D

* o' h2 V& D# v; Y: n桀Linux舀游蝔埋/O Schedule璅∪嚗亦:
& s8 f8 _2 Y: ^% b2 b2 ?' |
( R! X3 y1 S7 P
& g% m' @; x* g& m
Noop Scheduler (蝪∠迂noop) -- RIAD SSD 撱箄降雿輻 noop8 ^, x' c$ w' u& I+ A; K
臭誑蝞舀箸砌蝪∪Scheduler嚗銝餉冽潔鈭頛箇孵亦頠擃蝖祇剝雿啣銝哨銝鈭頠/蝖祇撌脩瑕芸楛I/O摮璈塚銝撠潛頂蝯望詨閬瘙頛撠嚗璅Scheduler瘥頛拙典典亙啣蝟餌絞銝准
9 l' G; Q" m/ f/ k8 E) h
& p$ ~4 z. ?  q4 }
0 v% T. Z1 L: O/ X- l! b
Completely Fair Queuing (蝪∠迂cfq)
7 G( S+ z. r; F7 B- N# G憿批蝢抬撠蝖祉蝟餌絞冽閬I/O隞餃嚗蝯衣詨雿摨(Queuing)嚗璅Scheduler拙冽潔砌蝙刻獢銝餉衣雿啣嚗芸2006撟12Linux Kernel 2.6.18銝渲喃伐CFQ Scheduler銝湔烊inux詨閮剔 I/O scheduler' _  P7 r  r8 q
) y6 ^! X" h; C* g; R5 Y# r7 B# \3 d
/ X: v  u3 r" S5 K- s* E0 M0 _+ G, g: t
Anticipatory Scheduling (蝪∠迂anticipatory)6 V! V! t" l1 Y" y6 a2 c5 S
曄銝摨行烊inux 2.6 Kernel 閮 I/O Scheduler 嚗婢nticipatory (/) 摮閫靘嚗憒蝚砌I/O箇橘銝亦蝟餌絞蝚砌I/O隢瘙雿嚗Anticipatory Scheduling撠Y銝閮剝閬6瘥怎"皜"()嚗皜穿臬函皜祉洵鈭I/O隢瘙航隞暻潛函嚗璅皜祇單芋撘函撣豢折脰冽摮蝟餌絞扳頛憭抒撱園莎撠文嗆臬鞈摨恍璅蝟餌絞啣嚗雿銋嚗Anticipatory Scheduling撠澆蝬脤隡箸券璅蝟餌絞銵函曄貊嗅末! i+ h- v! ^7 d( L3 R& t+ d+ G

9 R* ?0 r0 t  g# q( l* Q5 q* h- U
! C9 u  x3 |4 U, I/ Z, O) m* H# E! `" y
Deadline Scheduler (蝪∠迂deadline) -- SATA 撱箄降雿輻 deadline
6 E( D5 K; _# M4 a, K' k銝餉Scheduler撠望舫撠Anticipatory Scheduling蝻粹靘脰孵嚗摰撠蝤蝣銝剔撣賊剖啣銝函撘嚗閮銝西ˊ雿蝚血撠撱園脫雿摨嚗璅蝯撠潸摨怎頂蝯梯賣靘游摮! W0 t8 R' h# |% g- h0 s1 m0 h

9 r; w3 z. E* t
$ e, z( T9 Y2 @; V* \2 W6 v3 n+ E
銝爹ed Hat Enterprise Linux 4 (2.6 Kernel) 剝Oracle10G鞈摨怨蝔埋/O Scheduler皜祈岫蝯 (鞈靘皞撅昱edhat砍豢)( s1 I  I! s, ]: S' |/ V

+ Y5 V5 b' J# ~: M; _

7 t1 M7 B" T+ H' y1 O蝪∪桃閫鈭I/O Scheduler璅∪撌桃啣嚗臭誑撠銝脣閮剖靘剝銝I/O Scheduler脰賭隤踵∴擐曉啁恣I/O Scheduler蝟餌絞瑼獢嚗瑼獢舐牢at孵靘霈:/ }1 G- c0 @$ h1 K$ i" M2 i

  z4 e+ t) x5 ~1 l8 P  Q% D

+ Q0 `4 n" ]3 }' Q( w$ |" `, ?#cat /sys/block/sda/queue/scheduler/ ]  V' z- g2 G0 Z  _& ~' A1 y8 G. ]* m1 E
[noop] anticipatory deadline cfq6 O) g# a% b  i8 D3 H$ C

# q5 r" j4 M1 Q' ?7 c: b6 h0 U; C
% l2 f0 n! I, q2 }! }9 w
敺銝靘嚗臭誑仿桀I/O Scheduler璅∪摸oop. (獢 [ ] )1 o% S! g7 F3 R/ ?

; [1 \* O# w& X( V4 w: V

  J7 R. ~4 I+ L- F0 m7 f' ]* l: |仿閬脰靽格寡矽湛雿瘜拍車:& v, a( }5 A  R$ q( z

6 M8 N  {. H9 p! }
% E4 r4 Q/ c( @
1. 格活隤踵湛唾矽游喟嚗蝬庸cho隞支湔遐/O Scheduler璅∪
+ F7 T# ^8 G- X$ ~$ s& g  A) M; \+ V2 P1 G; o9 H5 Y7 y. E( G4 l
1 ~# R3 W! W; z/ D9 J' \* W
#echo Deadline>/sys/block/sda/queue/scheduler' j" p* b: m$ K0 ?# b$ O  q
: L% ?1 j! z2 k0 C& t
- J) Z+ A$ z& F9 |5 U
銝靘箏桀sda憿蝖祉I/O Scheduler湔寧慣eadline璅∪嚗孵典喟嚗雿圈璈敺啁頂蝯望詨暺隤I/O Scheduler璅∪
% I2 h, W% b- e" f
2 [( S5 D6 U  G) [

/ H8 }) x0 Q# e! _. G- N8 r& ~0 Y2. 刻蝟餌絞璈脰隤踵渡:6 s( G3 [0 G9 A
隞乩21( j7 ^( ~! ^2 r3 R9 d8 ?) k
/etc/rc.local 批乩銵:
echo anticipatory > /sys/block/sdb/queue/scheduler
函頂蝯梁GRUB璈瑼獢銝哨敺銝銵銝elevator=deadline嚗喳舀潭甈⊿璈敺賭Deadline Scheduler雿璅∪嚗憒銝靘:, B* D' I2 b0 l4 Y0 A' c1 I  C! w/ q
: P: R: C7 [3 u( }

! x: o9 W- S& G! `2 k& Y蝺刻摩 /boot/grub/grub.conf* Q$ c" }7 k7 N- g% m8 l% @
! t) q" V' a$ n4 K( E+ n  t5 c
& e$ L( X1 F# P" k1 G- a" q% g, @
title Fedora Core (2.6.9-5.0.3.EL_lustre.1.4.2custom)- K0 c' B( D* H; Q6 a, ]
root (hd0,0)/ ~7 \2 u" O7 n6 L7 @1 R
kernel /vmlinuz-2.6.9-5.0.3.EL_lustre.1.4.2custom ro7 @' Y1 f0 ^' {! c5 U
root=/dev/VolGroup00/LogVol00 rhgb noapic quiet elevator=deadline+ j6 o  v) ]  L& x! \

5 u0 |8 `$ s* b) q1 W
% P+ Y% L; L. W  R4 Z  }# T- f
  n4 D4 W  r5 v" }9 U# k( P' g. z

$ u: n! k+ J0 L鈭 乩靘舐′蝣 Readahead 敹怠
. h# |$ a6 h+ I) E  h; T) f9 b. Z6 h9 z% R, A' L5 V2 R0 P1 I

  i6 {* A& _  I. ^0 \0 c. b$ m其遢撠望頛摰寞閫嚗蝬梁頂蝯梁蝣霈閮剖靘霈踝蝬梯矽嵇eadahead Sectors憭批靘憓脩頂蝯梁蝣霈賢榆堆撠望航矽∠銝餉桃2 D# ~7 D* w) v, Y$ H
! W0 L2 d, q7 K% |
% |' V$ A( N+ R( ^6 m
蝬尉inux蝟餌絞隞: blockdev 靘瑼Z桀sda蝖祉Readahead Sectors憭批嚗蝭靘憒銝
' Z  c& ?7 N; A9 @3 \
: ~( A# r, p! S* D5 ]6 [
8 M7 |+ a/ a: \% D
#blockdev --getra /dev/sda   (蝟餌絞閮剜256M)" Q) _& G! `" T  \. W$ R/ i( Z7 w2 E
512! }/ Z: n( ]# {- c9 R
- k& v: N: n( U+ ?! U1 l6 Z

, y) }  K2 r; c  q) M7 P3 b+ q蝬梯矽游訾蒂撣嗅兄ectors憭批嚗靘脰質矽湛蝭靘憒銝:
% p+ ?2 b1 Z/ X& \, l" L
& R7 E# _0 U3 C: p" f
# f$ q; P# ?9 i3 }2 V" W( M
#blockdev --setra 4096 /dev/sda4 k6 Y$ U5 H. z9 D0 o
: @7 |7 a- e& Q) k5 d. o  R
6 _* [; L9 `6 f, _# a- I
#blockdev --getra /dev/sda, |$ h+ s( M0 D" j+ o9 f9 Z! R6 Y
4096$ m  u/ l  P/ J% v8 k

+ w1 g' l" t/ E, n+ }
刻蝟餌絞璈芸閮剖:7 k8 o9 `8 T1 O0 l( D' R
/etc/rc.local 批乩銵:
5 w0 v6 N1 a% p# W1 T7 A5 O6 Jblockdev --setra 4096 /dev/sda; d' k' t$ N- n. h0 \! q$ a: a
  r! g. g2 a) j5 I/ K1 j7 T
蝬拍車蝖祉質矽∠撠寞嚗舀賢典祈賢停瘥頛撌桃蝖祇啣銋銝嚗憭憯璁典箔鈭霈賬  Y4 m' N6 z* K0 A1 I- P! S
撖虫:隞亙鈕erver敺憭撌乩,靘憒 ffmpeg, php(move_uploaded_file)銝喳之瑼獢 ,tar , mv 憭抒瑼獢,雿撟曆∩,摰典銝鈭,蝬銝餈啁隤踵,憿摰刻圾瘙1 T! a& v8 \7 ?5 Q2 v

9 |6 o% ]' E# c) p8 k& ]血,sysctl.conf隤踵銋舀撟怠拍' o% c4 m) e6 y) w6 D  j6 i4 N
" Q( B: Z" l3 @+ C- t+ J5 V

& B8 u/ G8 s7 X* R8 X
靘皞:
5 T4 j) ]8 s" T3 B2 u, R% R3 d( H9 s6 V  E& ?9 K3 D/ ^9 O$ ?
http://itstorage.storageforum.tw ... eadahead-cache.html

2 ]# @0 c( }- L8 B( E8 _7 N

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-26 04:11 , Processed in 0.068668 second(s), 19 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵