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

打造終極 HiEnd HTPC - Linux 哇塞!

[複製鏈接]

16

主題

1772

回帖

0

積分

新手上路

四星級會員

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

mkfs.xfs -f -b size=xxxx /dev/ram0
如果不加 -b 上面這個就無法執行
連size=xxxx都不加的話 就會以kernel預設值為大小, 即使在boot已經指定ramdisk_size.

boot已經指定ramdisk_size的情況, mkfs.xfs 實際如何下指令才可以照ramdisk_size大小全部格式化?

重開機之後所有指令就必須重新下達是吧!
[/B]


咦? 這跟小弟的情況不一樣耶.
您在/etc/default/grub加入ramdisk_size之後, 有重新update-grub嗎?
小弟就算不加任何指令, 只下
mkfs.xfs /dev/ram0
格式化出來的大小就是ramdisk_size指定的大小耶..

14

主題

849

回帖

0

積分

新手上路

三星級會員

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

咦? 這跟小弟的情況不一樣耶.
您在/etc/default/grub加入ramdisk_size之後, 有重新update-grub嗎?
小弟就算不加任何指令, 只下
mkfs.xfs /dev/ram0
格式化出來的大小就是ramdisk_size指定的大小耶.. [/B]


update-grub 這個壞孩子, 常常讓我忘記ㄜ!  [}]

0

主題

165

回帖

0

積分

新手上路

二星級會員

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

thx for the sharing yes indeed it make the sound more refined.
however how can i make it permanent?  every time i boot need to redo it again?

cheers!!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

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

thx for the sharing yes indeed it make the sound more refined.
however how can i make it permanent?  every time i boot need to redo it again?

cheers!! [/B]


solo16兄,

您可以把所有步驟放入/etc/rc.local裡面, 就可以在開機的時候自動執行了. []

0

主題

165

回帖

0

積分

新手上路

二星級會員

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

thanks for the tip!!!! just wondering have you guys tried the alter the dirty ratio? it's another refinement tweak.

cheers!!!

14

主題

849

回帖

0

積分

新手上路

三星級會員

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

thanks for the tip!!!! just wondering have you guys tried the alter the dirty ratio? it's another refinement tweak.

cheers!!! [/B]


solo16兄 可否提供dirty ratio的設定方法! []

16

主題

1772

回帖

0

積分

新手上路

四星級會員

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

thanks for the tip!!!! just wondering have you guys tried the alter the dirty ratio? it's another refinement tweak.

cheers!!! [/B]


solo16兄,

CAT最好不要開swap.
沒有swap, 也就是沒有virtual memory.
沒有VM, 也就不用調整dirty ratio了.

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 10:31:00 | 顯示全部樓層
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

try to alter the no. but setting it to extreme no seems having a reverse effect.

btw if your system is minimal enough say disabled most of the devices in bios you may try the noapic nolapic in the kernel however not all mobo able to do so as the irq may change / conflict but sound wise it helps.

Cheers!!!

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2012-12-18 10:42:59 | 顯示全部樓層
原發表者是 bchsieh
[B]

solo16 兄,

CAT 最好不要開 swap.
沒有 swap, 也就是沒有 virtual memory.
沒有 VM, 也就不用調整 dirty ratio 了. [/B]


Hi bchsieh,

Yes I did set 0 for the vm.swapinness
and I'm using ext2 without journaling system fs, however I still found the dirty ratio tweaks helps and tested in different system also found that helps.

I've wondering wondering the same thing since I've already disabled the swap how come it still have effect. So I'm guessing it is from the SSD caching mechanism.

Please let me know your thought. I'm trying to learn here   []

Cheers!!!

16

主題

1772

回帖

0

積分

新手上路

四星級會員

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

Hi bchsieh,

Yes I did set 0 for the vm.swapinness
and I'm using ext2 without journaling system fs, however I still found the dirty ratio tweaks helps and tested in different system also found that helps.

I've wondering wondering the same thing since I've already disabled the swap how come it still have effect. So I'm guessing it is from the SSD caching mechanism.

Please let me know your thought. I'm trying to learn here   []

Cheers!!! [/B]


solo16兄,

根據Ubuntu help webpage:
https://help.ubuntu.com/community/SwapFaq
裡面提到:
"swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible"
這表示swappiness=0只表示盡量不要用到swap, 而非禁用.
真的要禁用, 要把/etc/fstab裡面的swap整個拿掉.
重開機後用top確定swap大小為0, 這樣才是真的禁用.
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|MyAV視聽商情網 test

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

Powered by MyAV!

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