lkml.org 
[lkml]   [2002]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: faster boots?
On Mon, 8 Apr 2002, David Lang wrote:

> On Mon, 8 Apr 2002, Richard B. Johnson wrote:
>
> > On Mon, 8 Apr 2002, David Lang wrote:
> >
> > > watch out for the write cycle limits of your flash. they're pretty low
> > > power (at least compared to anything mechanical) but if you're not careful
> > > you can go through their write capability pretty fast.
> > >
> > > David Lang
> > >
> > >
> > >
> >
> > Upon boot, you can mount a ram-disk off from /tmp. That will reduce
> > the activity when using the usual editors, vi, vim, emacs, and pico,
> > which all create temp files on /tmp.
>
> yes, you also need to mount the flash with noatime. even then you want to
> be careful about things like autosave.
>
> David Lang

I'm not talking about flash. I'm talking about creating a RAM-Disk
upon startup, using RAM, and mounting it off from /tmp.

Script started on Mon Apr 8 15:22:47 2002
# mke2fs /dev/ram 4096
mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1024 inodes, 4096 blocks
204 blocks (4.98%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
1024 inodes per group

Writing inode tables: 0/1 done
Writing superblocks and filesystem accounting information: done
# mount /dev/ram /tmp
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sdb1 16603376 4390520 11369448 28% /
/dev/sdc1 6356624 3113264 2920456 52% /alt
/dev/sdc3 2253284 1383916 754908 65% /home/users
/dev/sda1 1048272 282192 766080 27% /dos/drive_C
/dev/sda5 1046224 181280 864944 17% /dos/drive_D
/dev/ram1 3963 13 3746 0% /tmp
# ls -la /tmp
total 17
drwxr-xr-x 3 root root 1024 Apr 8 15:23 .
drwxr-xr-x 24 root root 4096 Apr 8 11:00 ..
drwxr-xr-x 2 root root 12288 Apr 8 15:23 lost+found
# rmdir /tmp/lost+found
# cp * /tmp
cp: cdrom.root: omitting directory
cp: platinum-rel-V1.05: omitting directory
cp: platinum.2000: omitting directory
cp: platinum.old: omitting directory
cp: platinum.saved: omitting directory
cp: tar.gz: omitting directory
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sdb1 16603376 4390520 11369448 28% /
/dev/sdc1 6356624 3113264 2920456 52% /alt
/dev/sdc3 2253284 1383916 754908 65% /home/users
/dev/sda1 1048272 282192 766080 27% /dos/drive_C
/dev/sda5 1046224 181280 864944 17% /dos/drive_D
/dev/ram1 3963 1915 1844 51% /tmp
# ls /tmp
2Alex.mail config.gz friday.pdf reboot.tar.gz timer.tar.gz
Allocate.sh copy.iso get_cdmusic.sh reject_probe.sh unix2dos.c
ME.TXT cp.iso gettime.sh resume.txt windows.bad
WhereIs.PowerPC dos2unix.c grok.sh security.sh zzz.c
backup.cdr eject.c junk.c sockperf.c
backup.iso fifo.c launch.tar test_ramdisk.sh
bomb.tar.gz fpu.c new.xinitrc testpoll.c
buffer.sh fpu_test.c platinum.spc testrd.sh
# umount /tmp
# exit
exit

Script done on Mon Apr 8 15:24:39 2002


Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

Windows-2000/Professional isn't.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.132 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site