http://services.nexodyne.com/email/
2006-02-04
方便的 E-Mail Icon Generator
For GMail, Hotmail, MSN, Yahoo!, AOL and many more!
2006-01-30
Using Sparse File for Gentoo Portage
$ cd /usr/portage
$ mv distfiles /home/ftp/gentoo/distfiles
$ mv packages /home/ftp/gentoo/packages
$ dd if=/dev/null of=/.portage.sf bs=1048576 count=0 seek=600
$ mkfs.reiserfs -f /.portage.sf (or mkfs.reiser4)
$ mv /usr/portage /usr/portage.old
$ mount /.portage.sf /usr/portage -o loop,noatime,notail,nodev (reiser4 doesn't need notail)
$ cp -r --no-dereference --preserve=all -T \
/usr/portage.old /usr/portage/
$ nano -w /etc/fstab
/.portage.sf /usr/portage reiserfs loop,auto,noatime,notail,nodev 0 0 /.ccache.sf /var/tmp/ccache reiserfs loop,auto,noatime,notail,nodev 0 0
$ df && du /.portage.sf
Filesystem 1K-blocks Used Available Use% Mounted on /.portage.sf 614376 178632 435744 30% /usr/portage /.ccache.sf 2097084 498564 1598520 24% /var/tmp/ccache 179344 /.portage.sf
$ mount
/.portage.sf on /usr/portage type reiserfs (rw,nodev,noatime,loop=/dev/loop0,notail) /.ccache.sf on /var/tmp/ccache type reiserfs (rw,nodev,noatime,loop=/dev/loop1,notail)The sparse files:
-rw-r--r-- 1 root root 2147483648 2006-02-21 22:24 .ccache.sf -rw-r--r-- 1 root root 629145600 2006-01-30 14:32 .portage.sf
2006-01-15
RAID0 / RAID1 under AMD Duron 600MHz
256MB PC133
ML810LR motherboard
CHOST=i686-pc-linux-gnu CFLAGS="-Os -pipe -mtune=athlon-tbird -fomit-frame-pointer -fno-ident -mmmx -m3dnow"Benchmark
$ hdparm -tT /dev/md0
Timing cached reads: 608 MB in 2.01 seconds = 302.77 MB/sec Timing buffered disk reads: 162 MB in 3.00 seconds = 53.92 MB/sec Timing cached reads: 592 MB in 2.00 seconds = 295.39 MB/sec Timing buffered disk reads: 168 MB in 3.00 seconds = 56.00 MB/sec Timing cached reads: 600 MB in 2.00 seconds = 299.38 MB/sec Timing buffered disk reads: 156 MB in 3.02 seconds = 51.58 MB/sec Timing cached reads: 616 MB in 2.00 seconds = 307.98 MB/sec Timing buffered disk reads: 168 MB in 3.00 seconds = 55.92 MB/sec Timing cached reads: 620 MB in 2.01 seconds = 308.75 MB/sec Timing buffered disk reads: 156 MB in 3.02 seconds = 51.65 MB/sec Timing cached reads: 612 MB in 2.01 seconds = 304.16 MB/sec Timing buffered disk reads: 156 MB in 3.00 seconds = 51.93 MB/sec
$ hdparm -tT /dev/md1
Timing cached reads: 600 MB in 2.01 seconds = 298.79 MB/sec Timing buffered disk reads: 146 MB in 3.01 seconds = 48.53 MB/sec Timing cached reads: 612 MB in 2.00 seconds = 305.98 MB/sec Timing buffered disk reads: 152 MB in 3.01 seconds = 50.46 MB/sec Timing cached reads: 628 MB in 2.01 seconds = 312.73 MB/sec Timing buffered disk reads: 146 MB in 3.02 seconds = 48.34 MB/sec Timing cached reads: 600 MB in 2.01 seconds = 298.79 MB/sec Timing buffered disk reads: 146 MB in 3.01 seconds = 48.53 MB/sec Timing cached reads: 612 MB in 2.00 seconds = 305.98 MB/sec Timing buffered disk reads: 152 MB in 3.01 seconds = 50.46 MB/sec Timing cached reads: 628 MB in 2.01 seconds = 312.73 MB/sec Timing buffered disk reads: 146 MB in 3.02 seconds = 48.34 MB/sec
4X DVD Recording under AMD Duron 600MHz
256MB PC133
ML810LR motherboard
ML810LR motherboard
$ time growisofs -speed=10 -Z /dev/hda=test4700m.iso
Executing 'builtin_dd if=test4700m.iso of=/dev/hda obs=32k seek=0' /dev/hda: "Current Write Speed" is 4.1x1385KBps. 19267584/4702013440 ( 0.4%) @3.8x, remaining 24:18 37486592/4702013440 ( 0.8%) @3.8x, remaining 18:39 .... 4674682880/4702013440 (99.4%) @3.9x, remaining 0:04 4693098496/4702013440 (99.8%) @3.9x, remaining 0:01 builtin_dd: 2295920*2KB out @ average 3.9x1385KBps /dev/hda: flushing cache /dev/hda: updating RMA /dev/hda: closing session real 15m11.160s user 0m6.736s sys 2m27.657s
2006-01-10
2006-01-09
Gentoo Crossdev
Syntax:
$ crossdev --target i586-pc-linux-gnu
1) Target
C3-2 Samuel: i586-pc-linux-gnu / i586-pc-linux-uclibc
2) Setup categories
$ mkdir -p /etc/portage $ echo cross-i586-pc-linux-gnu >> /etc/portage/categories
3) Setup PORTDIR_OVERLAY=/usr/local/portage
$ mkdir -p /usr/local/portage/cross-i586-pc-linux-gnu $ cd /usr/local/portage/cross-i586-pc-linux-gnu $ ln -s /usr/portage/sys-devel/binutils binutils $ ln -s /usr/portage/sys-devel/gcc gcc $ ln -s /usr/portage/sys-kernel/linux-headers linux-headers $ ln -s /usr/portage/sys-libs/glibc glibc
4) binutils
$ emerge cross-i586-pc-linux-gnu/binutils
5) gcc [C compiler only]
$ USE=nocxx emerge cross-i586-pc-linux-gnu/gcc $ gcc-config
6) linux headers
$ emerge cross-i586-pc-linux-gnu/linux-headers
7) glibc
$ USE=x86 emerge cross-i586-pc-linux-gnu/glibc
8) gcc [C and C++ compiler]
$ emerge cross-i586-pc-linux-gnu/gcc
9) Build stuff!
10) install a basic system into a target area
# use a stage-tarball OR # check your USE variable! # Many variables are needed for the root: $CTARGET $CHOST $CBUILD $ ROOT="/tmp/minime" emerge uclibc busybox baselayout-lite dropbear # When compiling glibc, you might notice that 'prefix' == /usr. This is OK, even if $ROOT points elsewhere
11) install other packages
$ ROOT="/tmp/minime" INSTALL_MASK="*.h" emerge mypackage
12) strip all symbols
You can add the following to your make.conf or export it in your environment. PORTAGE_STRIP_FLAGS="--strip-unneeded -R .comment"
If your not using java and have no plans of it you can remove the .jcr as well or use this patch.
Subscribe to:
Posts (Atom)