jmore...@mint ~ $ ls -lash /dev/ram*
0 brw-rw---- 1 root disk 1,  0 2010-03-29 21:35 /dev/ram0
0 brw-rw---- 1 root disk 1,  1 2010-03-29 21:35 /dev/ram1
0 brw-rw---- 1 root disk 1, 10 2010-03-29 21:35 /dev/ram10
0 brw-rw---- 1 root disk 1, 11 2010-03-29 21:35 /dev/ram11
0 brw-rw---- 1 root disk 1, 12 2010-03-29 21:35 /dev/ram12
0 brw-rw---- 1 root disk 1, 13 2010-03-29 21:35 /dev/ram13
0 brw-rw---- 1 root disk 1, 14 2010-03-29 21:35 /dev/ram14
0 brw-rw---- 1 root disk 1, 15 2010-03-29 21:35 /dev/ram15
0 brw-rw---- 1 root disk 1,  2 2010-03-29 21:35 /dev/ram2
0 brw-rw---- 1 root disk 1,  3 2010-03-29 21:35 /dev/ram3
0 brw-rw---- 1 root disk 1,  4 2010-03-29 21:35 /dev/ram4
0 brw-rw---- 1 root disk 1,  5 2010-03-29 21:35 /dev/ram5
0 brw-rw---- 1 root disk 1,  6 2010-03-29 21:35 /dev/ram6
0 brw-rw---- 1 root disk 1,  7 2010-03-29 21:35 /dev/ram7
0 brw-rw---- 1 root disk 1,  8 2010-03-29 21:35 /dev/ram8
0 brw-rw---- 1 root disk 1,  9 2010-03-29 21:35 /dev/ram9



jmore...@mint ~ $ sudo mkfs.reiserfs /dev/ram0
[sudo] password for jmoreira:
mkfs.reiserfs 3.6.21 (2009 www.namesys.com)
<...>
UUID: 700cb4ff-3607-4173-a2d0-12567b00dd6c
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
        ALL DATA WILL BE LOST ON '/dev/ram0'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
ReiserFS is successfully created on /dev/ram0.

jmore...@mint ~ $ sudo mount /dev/ram0 /tmp/ramfs/

jmore...@mint ~ $ sudo chmod 777 /tmp/ramfs/

jmore...@mint ~ $ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda4              18G  7.6G  9.0G  46% /
udev                  1.3G  324K  1.3G   1% /dev
none                  1.3G  1.5M  1.3G   1% /dev/shm
none                  1.3G  108K  1.3G   1% /var/run
none                  1.3G     0  1.3G   0% /var/lock
none                  1.3G     0  1.3G   0% /lib/init/rw
none                   18G  7.6G  9.0G  46% /var/lib/ureadahead/debugfs
/dev/sda3              40G   23G   17G  58% /media/206E1A2F3EB61462
/dev/ram0              64M   33M   32M  51% /tmp/ramfs


AFAIK you need to do this everytime you boot or setup a script to do
it (since it's a volatile memory disk)





2010/3/29 Niklasro(.appspot) <[email protected]>:
> On Mar 28, 11:46 pm, José Moreira <[email protected]> wrote:
>> Setup something likehttp://ubuntuforums.org/showthread.php?t=182764
>> and set your datastore path on to the ramdisk with :
>>
>> --datastore_path=PATH      Path to use for storing Datastore file stub
>> data. (Default /tmp/dev_appserver.datastore)
>>
>> *** speed tests ***
>>
>> Regular disk:
>>
>> jmore...@mint ~/Tmp $ sudo hdparm -Tt /dev/sda4
>> /dev/sda4:
>>  Timing cached reads:   3576 MB in  2.00 seconds = 1791.11 MB/sec
>>  Timing buffered disk reads:  112 MB in  3.01 seconds =  37.23 MB/sec
>>
>> Ram disk disk:
>>
>> jmore...@mint ~/Tmp $ sudo hdparm -Tt /dev/ram0
>> /dev/ram0:
>>  Timing cached reads:   4114 MB in  2.00 seconds = 2061.44 MB/sec
>>  Timing buffered disk reads:   64 MB in  0.14 seconds = 446.65 MB/sec
> I don't have a harddrive doing something similar:
>  df -h
> Filesystem            Size  Used Avail Use% Mounted on
> aufs                  2.0G  451M  1.5G  24% /
> udev                  2.0G  236K  2.0G   1% /dev
> /dev/sr0              691M  691M     0 100% /cdrom
> /dev/loop0            666M  666M     0 100% /rofs
> none                  2.0G  136K  2.0G   1% /dev/shm
> tmpfs                 2.0G   20K  2.0G   1% /tmp
> none                  2.0G   88K  2.0G   1% /var/run
> none                  2.0G     0  2.0G   0% /var/lock
> none                  2.0G     0  2.0G   0% /lib/init/rw
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>



-- 
[email protected]
http://beta.icodedhere.com
http://pt.linkedin.com/in/josemoreira
http://djangopeople.net/josemoreira
http://www.crunchbase.com/user/josemoreira

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to