Hadirmu Tidak diundang, Jika ragu-ragu sila pulang!!

Ini blog suka hati aku. Bukan untuk tontonan umum. Kalau engkau masuk ke sini secara tak sengaja, SILA BERAMBUS DENGAN SOPAN sebelum merasa terhina dengan kutukan cacimaki keji dari aku.

Aku dah WARNING!!! Kalau kau nak baca juga, kau WAJIB 100% BERSETUJU dengan apa pun yang aku tulis dan bersumpah setia tak akan mempergunakan apa-apa kandungan blog ini untuk menjahanamkan aku. Jika kau tak bersetuju juga, Sila Pergi Jahanam dan BERAMBUS DENGAN SEGERA sebelum aku cabut urat kentut kau dan menyebabkan kau lumpuh seumur hidup.

Sudahlah, aku taknak membebel lagi. Kalau kau tak faham lagi, sila baca lagi ayat-ayat diatas sampai faham.

Baca lagi ayat diatas...

Khamis, 18 September 2008

howto add swapfile on linux

the board seems freezing and on the serial console will output so many lines of:

__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)

fixing it by adding swapfile
Adding Swap: 98296k swap-space (priority -1)

# dd if=/dev/zero of=/swapfile bs=1024 count=98304
# mkswap -L swapfile /swapfile
# swapon /swapfile
[...]
# swapoff /swapfile
# rm /swapfile

---------
the swapfile seems working, adding it to fstab...

Add this line on /etc/fstab

/swapfile none swap sw 0 0

-----------
Got another problem with blkid

root@raingauge:root# blkid
blkid: symbol lookup error: blkid: undefined symbol: blkid_dev_set_search

on the serial console it output:
end_request: I/O error, dev 1f:01 (mtdblock), sector 144
end_request: I/O error, dev 1f:01 (mtdblock), sector 145
end_request: I/O error, dev 1f:01 (mtdblock), sector 146
end_request: I/O error, dev 1f:01 (mtdblock), sector 147
end_request: I/O error, dev 1f:01 (mtdblock), sector 148
end_request: I/O error, dev 1f:01 (mtdblock), sector 149
end_request: I/O error, dev 1f:01 (mtdblock), sector 150
end_request: I/O error, dev 1f:01 (mtdblock), sector 151
end_request: I/O error, dev 1f:01 (mtdblock), sector 32
end_request: I/O error, dev 1f:01 (mtdblock), sector 33
end_request: I/O error, dev 1f:01 (mtdblock), sector 34
end_request: I/O error, dev 1f:01 (mtdblock), sector 35
end_request: I/O error, dev 1f:01 (mtdblock), sector 36
end_request: I/O error, dev 1f:01 (mtdblock), sector 37
end_request: I/O error, dev 1f:01 (mtdblock), sector 38
end_request: I/O error, dev 1f:01 (mtdblock), sector 39

---------
working on fixing the blkid, seems like incorrect library... updating with

root@raingauge:root# apt-get install libblkid1

then the blkid is ok
root@raingauge:root# blkid
/dev/sdcard0/disc0/part2: UUID="d72eee7f-551d-443f-b04f-fed6e5b4655a" TYPE="ext2"
/dev/sdcard0/disc0/part3: UUID="88a1a443-c693-41ef-8f08-917b98173b77" TYPE="ext2"
root@raingauge:root#

-------------
while testing the new swap, i the fskin server didn't reply to http request. so, I make 7 click and this is current result of free memory...

no more free physical memory... and it uses a lot of swap (about 10MB) for 7 clicked and unsent data due to no reply from PLUS server

root@raingauge:root# free -m
total used free shared buffers cached
Mem: 28 24 3 0 0 12
-/+ buffers/cache: 11 16
Swap: 95 10 85

however, the board didn't freeze anymore.

Tiada ulasan:

Catat Ulasan

Nota: Hanya ahli blog ini sahaja yang boleh mencatat ulasan.