52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2017-8-26 21:22:52 | 芰閰脖 |芰憭批 撣 |甇摨閬 |梯璅∪
銝 擐隞蝝寧′蝣  I/O Scheduler
9 Q7 E: C* Z6 R2 [* b. G
5 I+ ?6 I9 }  s0 A: G1 P
. J& Z" \7 B2 ^' d& a5 g
I/O Scheduler臭暻潘Wiki隤芣:6 U9 ^0 @3 Y, }2 _, e" Z
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'.) Q7 J1 Y( K& g

5 s' K! p2 S  j
' f( X2 _% w0 _9 `" \
蝪∪桃隤迎撠望航臭誑蝬曹閮剖嚗靘啗矽渡蝣摮(I/O)璅∪銝蝔株身摰撌亙瑯
% [% q4 }3 o. e5 a0 @5 v" F' ?7 K

9 ^  V$ v; S" t+ N2 x4 ~, z桀Linux舀游蝔埋/O Schedule璅∪嚗亦:
+ ]( \7 B' s1 D* d) x/ o6 b" r; i% g# B! Z. r

: B* i& O4 L. NNoop Scheduler (蝪∠迂noop) -- RIAD SSD 撱箄降雿輻 noop; }7 O* E, r2 [* O+ c. Y
臭誑蝞舀箸砌蝪∪Scheduler嚗銝餉冽潔鈭頛箇孵亦頠擃蝖祇剝雿啣銝哨銝鈭頠/蝖祇撌脩瑕芸楛I/O摮璈塚銝撠潛頂蝯望詨閬瘙頛撠嚗璅Scheduler瘥頛拙典典亙啣蝟餌絞銝准% f# ~" {$ ?- [/ |2 q

2 |  T) R0 Q- L" d: r7 A
0 G/ v5 F, M9 {% _9 M9 I. T$ ]
Completely Fair Queuing (蝪∠迂cfq)
. N- K! u+ ?  a. `9 H- Q+ z( [5 u憿批蝢抬撠蝖祉蝟餌絞冽閬I/O隞餃嚗蝯衣詨雿摨(Queuing)嚗璅Scheduler拙冽潔砌蝙刻獢銝餉衣雿啣嚗芸2006撟12Linux Kernel 2.6.18銝渲喃伐CFQ Scheduler銝湔烊inux詨閮剔 I/O scheduler6 j4 o. Y' }: V

1 }0 t" P9 a4 F" L# N' |
+ x/ x8 o7 |; R) [
Anticipatory Scheduling (蝪∠迂anticipatory)+ J2 e$ O3 y& ~7 x6 L
曄銝摨行烊inux 2.6 Kernel 閮 I/O Scheduler 嚗婢nticipatory (/) 摮閫靘嚗憒蝚砌I/O箇橘銝亦蝟餌絞蝚砌I/O隢瘙雿嚗Anticipatory Scheduling撠Y銝閮剝閬6瘥怎"皜"()嚗皜穿臬函皜祉洵鈭I/O隢瘙航隞暻潛函嚗璅皜祇單芋撘函撣豢折脰冽摮蝟餌絞扳頛憭抒撱園莎撠文嗆臬鞈摨恍璅蝟餌絞啣嚗雿銋嚗Anticipatory Scheduling撠澆蝬脤隡箸券璅蝟餌絞銵函曄貊嗅末
4 |/ j( }* Y) o) ?+ [+ S% Z5 r8 S! @
6 S% e) ]5 G3 p/ v" N* ?
! @/ P6 |4 R  N0 _6 g* V5 F0 H3 ~
Deadline Scheduler (蝪∠迂deadline) -- SATA 撱箄降雿輻 deadline
  F' O; B9 p- h! `銝餉Scheduler撠望舫撠Anticipatory Scheduling蝻粹靘脰孵嚗摰撠蝤蝣銝剔撣賊剖啣銝函撘嚗閮銝西ˊ雿蝚血撠撱園脫雿摨嚗璅蝯撠潸摨怎頂蝯梯賣靘游摮
5 @3 @6 e4 E# o# y, ~5 p6 z% |9 D+ X5 Y$ O4 J! E
( S  b' }( L" F) Q
銝爹ed Hat Enterprise Linux 4 (2.6 Kernel) 剝Oracle10G鞈摨怨蝔埋/O Scheduler皜祈岫蝯 (鞈靘皞撅昱edhat砍豢)0 N6 t0 n! o% L) ^
5 s+ J  j4 f- {+ M/ a8 O( U
5 D! Q) v7 Y8 m
蝪∪桃閫鈭I/O Scheduler璅∪撌桃啣嚗臭誑撠銝脣閮剖靘剝銝I/O Scheduler脰賭隤踵∴擐曉啁恣I/O Scheduler蝟餌絞瑼獢嚗瑼獢舐牢at孵靘霈:
' n  P1 J9 m) e3 P: W* a: D' j! G
3 g# V# ]6 u& w9 q! S

  A/ W" I  k  K0 v3 C1 b#cat /sys/block/sda/queue/scheduler. Q1 G0 u5 @  g0 [5 i
[noop] anticipatory deadline cfq% @( w* s  e( A3 ]8 g
9 L! x& v; C+ W0 Y" k/ b

( [2 }$ B# |& o* L% ^2 U6 C/ K敺銝靘嚗臭誑仿桀I/O Scheduler璅∪摸oop. (獢 [ ] )
4 E' E. o$ e# B* I1 R" y$ F' d9 {$ _/ |. o
& t! Y2 g7 o& `" r
仿閬脰靽格寡矽湛雿瘜拍車:8 @# F. P. ~- s# I& m& L2 L* s) H
) }9 o( m0 [' f* z
7 A  b. t) r5 W
1. 格活隤踵湛唾矽游喟嚗蝬庸cho隞支湔遐/O Scheduler璅∪0 p9 v( r" X$ J( r- }3 B2 K
& v& |$ v% U2 E6 @

- W" V" V$ v  z' t#echo Deadline>/sys/block/sda/queue/scheduler" ]  Y! v: K' s% X& }' m# s* T  I
  H7 _  s+ S% r3 k
7 k4 k2 g/ P( c, b! x0 i' X
銝靘箏桀sda憿蝖祉I/O Scheduler湔寧慣eadline璅∪嚗孵典喟嚗雿圈璈敺啁頂蝯望詨暺隤I/O Scheduler璅∪1 v; ~2 m1 K: c5 h, S7 q& ]# x

4 Y5 B+ k" H* s* r# g
9 [$ U% `1 Q) K2 [/ l4 a/ A
2. 刻蝟餌絞璈脰隤踵渡:
4 i" H9 ]+ D1 b5 }) l3 B, ?: ?隞乩21
2 C' I" j! H) Z
/etc/rc.local 批乩銵:
echo anticipatory > /sys/block/sdb/queue/scheduler
函頂蝯梁GRUB璈瑼獢銝哨敺銝銵銝elevator=deadline嚗喳舀潭甈⊿璈敺賭Deadline Scheduler雿璅∪嚗憒銝靘:
3 q/ u4 A, p1 s2 \- T! c1 y' m0 N8 R# \" P2 e

7 [0 r7 b8 P  x7 E) h) f蝺刻摩 /boot/grub/grub.conf; O0 k- k8 ~9 u. j5 p3 d" `' U. m
( I3 D* M* d0 v. b, L7 [( l% p
; N7 t+ X( B; E; A* q
title Fedora Core (2.6.9-5.0.3.EL_lustre.1.4.2custom)9 r( z' r; a; S, ]) p+ F4 ^. R1 g
root (hd0,0), p5 a7 n% J! R7 H9 a' L
kernel /vmlinuz-2.6.9-5.0.3.EL_lustre.1.4.2custom ro& R* \: k7 |& Z4 O3 M+ |- `1 r
root=/dev/VolGroup00/LogVol00 rhgb noapic quiet elevator=deadline
* a) ^9 d7 ^) \  E% |* t5 A
# d! f) v0 q# @2 M& y6 c% `
1 R$ p* O) [  T9 i( \6 t2 w

0 `" q: O8 |; W% X# I
0 j, ^- U7 Y7 s  F5 ~+ q: \
鈭 乩靘舐′蝣 Readahead 敹怠- k1 y; [# U1 c  H. h

% Y9 i9 j& z+ d7 p" R0 O

; t: U8 S% k: O; y5 S) F6 Q" S其遢撠望頛摰寞閫嚗蝬梁頂蝯梁蝣霈閮剖靘霈踝蝬梯矽嵇eadahead Sectors憭批靘憓脩頂蝯梁蝣霈賢榆堆撠望航矽∠銝餉桃6 P8 E+ [# f! d& b" `6 ?+ m  R1 z
" Y. p7 @" }' k+ G; F

( k. t: c& E8 a% V" S蝬尉inux蝟餌絞隞: blockdev 靘瑼Z桀sda蝖祉Readahead Sectors憭批嚗蝭靘憒銝
  B% f7 S7 p. i- ^
6 N) `7 a% v; e, @: [5 }/ i+ d

; f' }- {7 L! p$ W, q#blockdev --getra /dev/sda   (蝟餌絞閮剜256M)) |; ]$ G6 J) V- j) @& H. ?7 ~
512
1 h) u. G& R0 Q' e/ [5 O' ~2 ^) T4 {; ]+ w6 _1 `

, Z; r  E* S8 q6 _蝬梯矽游訾蒂撣嗅兄ectors憭批嚗靘脰質矽湛蝭靘憒銝:
  R. O' w4 a  A; N# D  k8 @' J4 f$ L& y) h  x7 n5 J  M
1 b% O) J' R# E) C( |
#blockdev --setra 4096 /dev/sda
# B, I6 _; u/ g) }  c
: u& A! M0 b; e- w" w6 z4 ~
1 R0 Z  L* }7 t' \
#blockdev --getra /dev/sda
+ ?2 w! G5 E  _6 f3 b4096
9 U3 y9 O9 k( z7 ~, w
6 H% o& N. `2 c3 Q% r$ T
刻蝟餌絞璈芸閮剖:& S; H$ V; O8 A2 `7 p
/etc/rc.local 批乩銵:
# r6 o5 y! @5 q; P9 Bblockdev --setra 4096 /dev/sda" `2 Y1 q  g+ O/ A; K& W: e
" A. J0 ?' J" K5 b9 H9 j, E
蝬拍車蝖祉質矽∠撠寞嚗舀賢典祈賢停瘥頛撌桃蝖祇啣銋銝嚗憭憯璁典箔鈭霈賬
. V4 b# m% k# _- z, H撖虫:隞亙鈕erver敺憭撌乩,靘憒 ffmpeg, php(move_uploaded_file)銝喳之瑼獢 ,tar , mv 憭抒瑼獢,雿撟曆∩,摰典銝鈭,蝬銝餈啁隤踵,憿摰刻圾瘙3 t$ a* b5 _4 i  N! ~$ j
# j" G2 ~1 E5 w2 ^
血,sysctl.conf隤踵銋舀撟怠拍
. v$ S& J6 y. q: C/ g
& k# [' N+ s3 L) {( ^9 G
5 H) i$ N  g% P( S
靘皞:
7 [% `. d; @% j) p- F' G9 a) j# r7 [
http://itstorage.storageforum.tw ... eadahead-cache.html

0 P% x. B& z- |# G+ Q& K$ S

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-25 21:11 , Processed in 0.062421 second(s), 20 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵