[問題] ureadahead 放在init sequence的哪邊好? (upstart)

看板Linux作者 (十年一夢)時間13年前 (2013/03/31 19:38), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
抱歉我對linux算是新手, 這個問題我也會提一下我的work around, 希望不會被當成伸手牌. ureadahead有個問題是他啟動的時候 /var/lib/ureadahead/ 這個位置得要是可用的. 所以把 /var mount 在跟 / 不同的partition的話有可能有問題, 必須讓ureadahead在/var 已經mount好以後, 才啟動. 如果是ubuntu (我check過12.04, 12.10)的upstart, ureadahead在/etc/init 裡面有兩隻: ureadahead.conf 是start on starting mountall ureadahead-other.conf 是start on mounted DEVICE=[/UL]* MOUNTPOINT=/?* My work around: environment: 我的/ 在sda2, /var 在sda3, solution: (1) 我把ureadahead.conf改成 start on stopped mountall (2) 然後把ureadahead-other.conf 移走. 結果看起來沒問題, 不過看bootchart, mountall starting 和 stopped的 timing差四秒. 想請教一下(如果是upstart)有沒有更好的啟動ureadahead的方式選擇? 也想請教一下如果不是upstart (sysvinit, systemd, 常見還有哪些?), 而有使用ureadahead, 通常又是在哪裡啟動? Arch的話, 官方wiki裡面有建議sysinit_end或sysinit_premount, 也有提到若/var 在其他partition, 不能用sysinit_premount 而關於 ubuntu + ureadahead + /var在其他partition launchpad 上有人報bug: https://bugs.launchpad.net/ureadahead/+bug/523484 可是好像不太被當回事 ... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.162.84.36 ※ 編輯: neutrino 來自: 1.162.63.170 (04/01 12:46)
文章代碼(AID): #1HM20QdE (Linux)
文章代碼(AID): #1HM20QdE (Linux)