忘記密碼
 立即註冊
樓主: BYOB

打造終極 HiEnd HTPC - Linux 哇塞!

[複製鏈接]

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 11:13:53 | 顯示全部樓層
Hi bchsieh,

When I install the os I did not assign a swap partition does it work?

Cheers!!!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 11:17:01 | 顯示全部樓層
原發表者是 solo16
[B]Hi bchsieh,

When I install the os I did not assign a swap partition does it work?

Cheers!!! [/B]


應該是可以的.
但是如果要確認, 還是得用top來確定swap的大小是0才行.

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 11:45:30 | 顯示全部樓層
Hi bchsieh,

Thanks againg!!! Yup I did check with top and the swap is 0. However if you have time please kindly try the dirty ratio tweak coz I really hear difference and to me it's kind of improvement.

Cheers!!!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 11:47:57 | 顯示全部樓層
原發表者是 solo16
[B]Hi bchsieh,

Thanks againg!!! Yup I did check with top and the swap is 0. However if you have time please kindly try the dirty ratio tweak coz I really hear difference and to me it's kind of improvement.

Cheers!!! [/B]


真的嗎? 真有趣.
小弟晚上就來試試看.
多謝solo16兄. []

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 11:55:45 | 顯示全部樓層
Hi bchsieh / BYOB,

Just wondering have you guys tried the ram boot -- boot entire os to ram during boot.?

I'm currently working on it if you guys found anything please kindly let me know.

I've been stuck on it for quite a long time am trying very hard to make it work.

Cheers!!!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 12:10:55 | 顯示全部樓層
原發表者是 solo16
[B]Hi bchsieh / BYOB,

Just wondering have you guys tried the ram boot -- boot entire os to ram during boot.?

I'm currently working on it if you guys found anything please kindly let me know.

I've been stuck on it for quite a long time am trying very hard to make it work.

Cheers!!! [/B]


小弟沒有嘗試的原因, 是因為把系統放進ram裡面, 會增加ram內部的IO.
若系統沒有優化到一定的程度, 把系統放在ram裡面應該會有很大程度的提升.
但對已經高度優化的系統, 小弟猜測可能只會有減分的作用.

ps. XFS在mkfs.xfs階段和mount階段, 有非常多的參數可以調整, 對ramdisk有一定的影響.
solo16兄和BYOB兄都可以試試看.
另外, 建議把ramdisk的schedular調整成noop.

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 12:29:31 | 顯示全部樓層
Hi bchsieh,

great I was having same thought as you. but I'm juat so curious about it and found it quite challenging to me so I'll give it a try anyway.

wondering if it's possible to mount it on fstab?
if not how can i set the ram to noop as it went back to normal every time reboot?

thx so much for ur generous sharing!!!

cheers!!!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 13:41:12 | 顯示全部樓層
原發表者是 solo16
[B]Hi bchsieh,

great I was having same thought as you. but I'm juat so curious about it and found it quite challenging to me so I'll give it a try anyway.

wondering if it's possible to mount it on fstab?
if not how can i set the ram to noop as it went back to normal every time reboot?

thx so much for ur generous sharing!!!

cheers!!! [/B]


Hi solo16兄,

您如果所有的硬碟都要使用相同的schedule, 您可以在kernel boot parameter後面加入:
elevator=noop
noop可以換成其他的選擇.

如果開機後要改設定, 可以用
echo noop > /sys/block/ram0/queue/schedule

但是小弟剛剛才發現, 雖然上面的指令不會有任何錯誤訊息出現,
但是無論放入任何設定到ram0的schedule裡面,
它的設定皆是none.
也就是說ram0不接受任何的schedule設定.
這在當初小弟設定的時候, 一廂情願的認為使用xfs和ramdisk應該就是用noop會比較好,
所以就沒有進一步檢查ram0是否支援schedule.
很抱歉, 提供了一個沒有用的訊息給您... [:I]

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 15:43:17 | 顯示全部樓層
原發表者是 solo16
[B]Hi BYOB,

These are the steps:

echo 1000 > /proc/sys/vm/dirty_writeback_centisecs

echo 15 > /proc/sys/vm/dirty_background_ratio

echo 30 > /proc/sys/vm/dirty_ratio

[恕刪]
[/B]


剛剛測試發現, 有關dirty page的設定, 跟virtual memory沒有關係.
意思就是說, 就算沒有swap (or VM), 這些設定還是有作用的.
從/proc/meminfo的內容就可以看出來, 就算是沒有swap, 還是會有dirty pages, 等著被寫入硬碟.
linux把這些dirty pages的設定放在vm的類別內, 很容易讓人誤會這些跟vm有關.
這也就難怪solo16兄發現這些設定還是會影響聲音,
因為這些設定控制著什麼時候pdflush要把這些dirty pages寫入硬碟.

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 16:28:39 | 顯示全部樓層
Hi bchsieh,

No worries!!! Thanks again for the sharing!!!

Btw do you guys able to make hdspe aes work with 12.04 or 12.10? I'm still trying to figure out the problems. Funny thing is it actually recognize the card and plays but the sound Flutter like fast forwarded. I came across such problem before and the solution is the hpet, but this time running out of luck tried many times still not work.
So if you guys know anything please kindly let me know thanks in advance.

Cheers!!!
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|MyAV視聽商情網 test

GMT+8, 2026-11-19 19:50 , Processed in 0.109308 second(s), 41 queries .

Powered by MyAV!

快速回覆 返回頂部 返回列表