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

打造終極 HiEnd HTPC - Linux 哇塞!

[複製鏈接]

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2012-12-18 16:52:20 | 顯示全部樓層
原發表者是 bchsieh
[B]

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


關於VM, cache是否也算是其中一種!?

用free檢查記憶體狀況, 發現每執行一次程式, 可用記憶體就越少, 而cache 會越來越大

root@cat:~# free

..............total........used.....            free.shared.buffers..cached
Mem:       4134476    1146488    2987988          0      54932    1003960
-/+ buffers/cache:      87596    4046880
Swap:            0          0          0

執行清除cache指令, 再撥放音樂似乎變好一點, 錯覺嗎!

root@cat:~# echo 3 > /proc/sys/vm/drop_caches



16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 16:56:40 | 顯示全部樓層
原發表者是 BYOB
[B]

關於VM, cache是否也算是其中一種!?

用free檢查記憶體狀況, 發現每執行一次程式, 可用記憶體就越少, 而cache 會越來越大

root@cat:~# free

..............total........used.....            free.shared.buffers..cached
Mem:       4134476    1146488    2987988          0      54932    1003960
-/+ buffers/cache:      87596    4046880
Swap:            0          0          0

執行清除cache指令, 再撥放音樂似乎變好一點, 錯覺嗎!

root@cat:~# echo 3 > /proc/sys/vm/drop_caches



[/B]


小弟認為cache不算是virtual memory, 因為它本身就是memory, 不是"virtual"..  []

至於cache.. BYOB兄, 您還沒把moc的pagecache關掉嗎?
關掉pagecache, 聲音差很大耶 (至少以mpd來說).

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2012-12-18 16:57:10 | 顯示全部樓層
原發表者是 solo16
[B]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!!! [/B]


我目安裝OSS4是可以正常運作, 因為還沒TRY ALSA 所以還沒遇到問題...[|)]

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2012-12-18 17:03:27 | 顯示全部樓層
原發表者是 bchsieh
[B]

小弟認為cache不算是virtual memory, 因為它本身就是memory, 不是"virtual"..  []

至於cache.. BYOB兄, 您還沒把moc的pagecache關掉嗎?
關掉pagecache, 聲音差很大耶 (至少以mpd來說). [/B]


因為他也是放在vm下哩![}]

/proc/sys/vm/drop_caches

關掉pagecache是您上次提到的軟體嗎?

16

主題

1772

回帖

0

積分

新手上路

四星級會員

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

因為他也是放在vm下哩![}]

/proc/sys/vm/drop_caches

關掉pagecache是您上次提到的軟體嗎? [/B]


是的, 請您試試看. 應該有神效.. []

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2012-12-18 17:20:07 | 顯示全部樓層
小b老師可以幫我看一下開機錯誤訊息嗎?

process 213: arguments to dbus_server_disconnect() were incorrect, assertion "old_refcount > 0" failed in file ../../dbus/dbus-server.c line 786.
This is normally a bug in some application using the D-Bus library.
process 213: arguments to dbus_server_unref() were incorrect, assertion "old_refcount > 0" failed in file ../../dbus/dbus-server.c line 749.
This is normally a bug in some application using the D-Bus library.

是可以login進入系統沒問題的...

內核編譯時watchdog已經取消, 但安裝後用ps指令還是看得到揶, 又見鬼了 !

自己編譯的還是比較好聽說 . . .[]

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2012-12-18 17:41:43 | 顯示全部樓層
原發表者是 BYOB
[B]小b老師可以幫我看一下開機錯誤訊息嗎?

process 213: arguments to dbus_server_disconnect() were incorrect, assertion "old_refcount > 0" failed in file ../../dbus/dbus-server.c line 786.
This is normally a bug in some application using the D-Bus library.
process 213: arguments to dbus_server_unref() were incorrect, assertion "old_refcount > 0" failed in file ../../dbus/dbus-server.c line 749.
This is normally a bug in some application using the D-Bus library.

是可以login進入系統沒問題的...

內核編譯時watchdog已經取消, 但安裝後用ps指令還是看得到揶, 又見鬼了 !

自己編譯的還是比較好聽說 . . .[] [/B]


dbus常出問題, 能成功開機就好了, 這些dbus問題如果要都解決, 可能得花不少的時間.

watchdog要關掉, 得從kernel boot parameter關.
請加"nmi_watchdog=0".
關了之後您應該聽得出聲音的進步. []

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2012-12-18 18:48:07 | 顯示全部樓層
原發表者是 bchsieh
[B]

dbus常出問題, 能成功開機就好了, 這些dbus問題如果要都解決, 可能得花不少的時間.

watchdog要關掉, 得從kernel boot parameter關.
請加"nmi_watchdog=0".
關了之後您應該聽得出聲音的進步. [] [/B]


watchdog的設定等,  archlinux 單純多了 [}]

watchdog 關掉之後 韻味大增 []


Page Cache Management 軟體要如何下載 !? [xx(]


搞定了wget下載整個目錄的參數如下:

root@cat:~/pcm# wget -c -r -np -nd http://pagecache-mangagement.googlecode.com/svn/trunk

接下來....敗求編譯指令....


0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 20:18:51 | 顯示全部樓層
hi guys,

the watchdog tweak is great thx!!!

cheers!

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 20:31:17 | 顯示全部樓層
hi bchsieh / BYOB,

just asking after making the ram0 is that mean the assigned memory is locked the system can't access it? only user is allowed for accessing it?

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

本版積分規則

Archiver|MyAV視聽商情網 test

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

Powered by MyAV!

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