Notices

Tips and Tricks Share tips that can save others time and frustration here !

Reply
 
LinkBack Thread Tools
Old 07-31-06, 01:10 PM   #1 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,582
Thanked 1 Time in 1 Post
The WM5 RAMDisk, compatible with (almost) every WM5 device, is here!

Anyone having read my articles (see for example this one) on the (dis)advantages of the new Windows Mobile 5 operating system know the memory/storage model of the operating system doesn’t at all let for (even temporary) storage kept in the very fast, albeit scarce and volatile dynamic RAM.

RAM disks can help this situation. They allow for allocating some (with current 64 MByte Pocket PC’s) 2…10 Mbytes of RAM (with 128M RAM Pocket PC’s, figures can be entirely different and there can even be 96 Mbyte-big RAM disks) and map it as a stand-alone drive in the file system as if it were a real storage card.

Being a “real” drive letter means it will not only be represented by a subdirectory in the file system (as can be seen in this screenshot) but also the standard, built-in CAB (program) installer will offer the ability to install your new apps there as can be seen in this Dell Axim x51v (note that the lack of the “available disk space” is not a bug caused by the RAM disk but the A12 ROM version of x51v itself; without the RAMdisk, it behaves exactly the same way as can be seen in here), HP iPAQ hx4700 and HTC Wizard screenshots.

What do RAM disks offer? For example extracting CAB files or other archives, transferring files from the desktop to the PDA or relocating your Web browser’s cache there. In the next chapter, I elaborate on these questions more thoroughly.



What can be RAM disks used for?
  1. Cache Relocation: You may want to relocate your browser cache directories, particularly now that all Pocket PC browsers that use a local file cache (all of the browsers except for Thunderhawk, Opera Mini and Minimo before version 0.014) have relocatable cache directories. Please see my blog and my old(er) articles on relocating the cache these browsers.

    Relocating a browser cache will result in (in cases, dramatic) page loading / switching speed increase, particularly with Web pages containing a lot of diffent, not-yet-cached, small images (flash ROM media is extremely slow for file creation, as opposed to dynamic RAM-based virtual file systems). The dramatic file system load (which isn't a problem if you relocate the cache to a storage card, though) decrease is also a big plus.

    All you need to do is relocating the cache to the RAM disk directory (\Ramdisk) and you’re all set.

  2. Software Testing: If you often test new programs on your PDA, you may prefer installing them to dynamic (fast) RAM (if there is enough memory for that) instead of static flash ROM or a storage card. You may already have noticed how slow it can be to install programs into the main storage memory of WM5 devices (or, particularly unoptimized and/or lower-end, storage cards), compared to the lighting-fast speed of earlier operating systems installing to RAM.

    The slow install speed can be extremely painful with some applications or games that install hundreds of files like the excellent platformer game SuperTux, the excellent adventure game Fade or some IR remote controllers. Copying hundreds of (small) files to flash-based media has always been painfully slow even if it’s correctly optimized (as far as memory cards are concerned, see this tutorial on the latter question). Installing, say, SuperTux (which consists of some 800 files) onto a storage card or in the built-in storage memory of a WM5 device can take minutes, while it only takes some seconds when installed into RAM.

    Also, if you temporarily install a new program to a RAM disk instead of the built-in storage, on non-native WM5 devices that are known for lengthy and painful filesys.exe compactions you can entirely avoid the need for (re)compaction. You quickly test the new application and decide whether you need it at all. If you do need it, you can reinstall it to a less volatile memory type; if you don’t need it, just uninstall. No filesys.exe compactions will take place.

    Finally, program loading is much faster from a RAMdisk than from any kind of flash memory. This also helps quic testing.

  3. Standard desktop-based software installation: when you install a Pocket PC progam on your desktop, in most cases a CAB file will be transferred to your PDA, in the \Windows\AppMgr\Install directory, so that it can be decompressed on the PDA itself. This directory, however, is in flash ROM and, therefore, even if you install your application on a storage card, using the built-in flash ROM memory for temporary storage purposes will inevitably result in a filesys.exe compaction.

    As has already been pointed out in my article, it’s not possible to redirect \Windows\AppMgr\Install to anywhere else (including \Ramdisk). Therefore, it’s highly preferable on a non-native WM5 device to get the CAB install file (by, for example, not letting ActiveSync install it directly on the PDA by disconnecting the Pocket PC before starting the desktop installer and, then, just searching for the CAB file by hand as is explained for example here), transferring it to \Ramdisk via ActveSync and, then, execute it from there. (Incidentally, you’d have the same effect if you transferred the file to a storage card instead. It, however, requires a storage card and, if done via ActiveSync, is considerably slower than transferring to the RAM disk.) This quarantees no excessive storage flash ROM writing/deletion takes place.

All in all, RAM disks can be used for a lot of things where a soft reset destroying the (volatile) contents of the disk isn’t a problem.

The RAM disk program

There have always been homemade RAM disk solutions for the (hacked) WM5 update for the HTC Blue Angel and Himalaya; most importantly, that of buzz_lightyear available here for download and extensively discussed in the same site. Please note that you should NOT use this version on any non- Blue Angel / Himalaya device – it simply won’t work (I’ve tested it on all my three WM5 devices, without any success. Of course, before letting it start, I made sure to decrease the, by default, 32Mbyte-large RAM disk size to something acceptable on a 64M RAM device.)

Other devices, as has been pointed out in my main article on upgraded (non-native) WM5 devices, so far, haven’t had any kind of RAM disk.

Now, the situation has changed: well-known Pocket PC community member Solnyshok has recompiled the WM5 RAM disk and released a version that is, finally, compliant with (almost?) all the WM5 devices out there, unlike buzz_lightyear’s one-model-only solution. His formal announcement can be found here (and has also discussed for example here).

All you need to do is downloading his ZIP file (note that I’ve also made it available here, just to be on the safe side if for example the server doesn’t work and/or you don’t want to strggle with RapidShare. Note that my ZIP file also contains the .lnk files to be explained later – they don’t need to be copied to \Windows) and putting the two files, ramdisk.dll and ramdisk.exe, into \Windows.

Now, download this (already-linked) file and copy all the .lnk files from it to, say, \Windows\Start Menu\Programs (or anywhere else) for quick access. With the exception of RamDisk-Unload.lnk, all these link files create a RAM disk (if they can) in the file system.

I’ve created many RAM disk intialization files; you’ll only need to click one of them to create a cache of the given size. For example, if you want a 10 Mbyte large RAM disk (and your Pocket PC is capable of maintaining it), click the RamDisk-10240.lnk link. Shortly after that, a new, \Ramdisk directory (and a new, virtual storage card) should appear in your Pocket PC’s (file) system. If it doesn’t, reset your device and retry (in some cases, particularly with bigger (8-10 Mbyte) RAM disks, you need to soft reset before creating the disk because of, probably, the memory fragmentation, which makes it impossible to allocate memory for the RAM disk.)

Important note: if you put these lnk files under \Windows\Start Menu\Programs, do not put them into a subdirectory named ‘ramdisk’ – the directory may be deleted upon initiating the RAM disk. Any other subdirectory name may be used.

Note that, particularly with bigger (8-10 Mbyte) RAM disks, you may see “bad handle” error messages like this when trying to copy something to the RAM disk inside the Pocket PC (and simple “can’t upload” messages when trying to do the same from the desktop, via the WinCE file system plug-in of Total Commander).

If you encounter this, just remove the RAM disk (by executing RamDisk-Unload.lnk) and, then, recreate it. Soft reset won't be necessary.

Problems

The biggest problem with the current version is that it doesn’t survive a soft reset, unlike the HTC Blue Angel / Himalaya version. Solnyshok, however, promises a solution to this.

It, if you don’t store anything valuable on it and/or you don’t soft reset your Pocket PC often, isn’t that big a problem.

Compliance / test result chart

Legend: + stands for working, - stands for non-working.



As can be seen, with the HTC Wizard (a.k.a. imate K-Jam, T-Mobile MDA Vario, Qtek 9100, MDA Vario, XDA mini S, SPV M3000, VPA Compact II, Dopod 838), you can’t go over 6M and the two VGA devices, over 10M RAM disk size. I, however, provide the link files for bigger RAM disk sizes too if you want to test them on other models.

It’s also worth noticing how blazingly fast USB (measured via the WinCE file system plug-in of Total Commander) transfer to the RAM disk is (at least two times faster than to the built-in storage / inserted memory cards).
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
The Following User Says Thank You to Menneisyys For This Useful Post:
Antineutrino (11-19-07)
Sponsor Ads
Old 07-31-06, 02:24 PM   #2 (permalink)
Aximsite Minor League
 
Join Date: Dec 2004
Location: Calgary, AB. Canada
Posts: 124
Device: Imate Jasjar&HP6915
Carrier: FIDO
Thanked 0 Times in 0 Posts
This is great, gonna try it out later.
__________________
Current Device and Accessories:

Imate Jasjar & HP HW6915

BT338 BT GPS, 2GB Transcend MiniSD, 1GB Lexar CF, 1GB ATP SD, Sonorix Bluetooth headphone w/mic and mp3. ThinkOutside BT mouse, Gum-size CF reader


Past Devices and Accessories:

Casio E125 -> Dell Axim X5 -> Palmone Treo 600-> Dell Axim X30 -> Dell Axim X51v ->HP H6315 -> Siemens SX66 -> HP HW6515

5GB Seagate MD, Logitech bluetooth headphone, ThinkOutside BT keyboard, Krussel leather case, 2nd standard battery, "Chris" VGA-out cable, Gum-size SD Reader
renhui is offline   Reply With Quote
Old 07-31-06, 05:23 PM   #3 (permalink)
Aximsite All Star
 
Mokubai's Avatar
 
Join Date: Dec 2005
Location: UK
Posts: 833
Device: HTC Touch Pro 2
Carrier: Vodafone UK
Thanked 0 Times in 0 Posts
I have been waiting for someone to do this for so long...

Have now transferred my Internet Explorer and Opera caches to ramdisk and I can tell you Opera is incredibly sweet working off of it!

I've also set my PDA up so that a 6 meg disk is created at start, now all I need is a way to copy the few required files into the ramdisk along with it....

Menneisyys, I thank you and owe you a beer.
Mokubai is offline   Reply With Quote
Old 07-31-06, 05:36 PM   #4 (permalink)
PocketChange
Guest
 
Posts: n/a
Great post, Menneisyys! Thank you... Doing a lot of testing myself, this could be a very handy thing for me!

I will give it a go, but looking forward to the fix that won't delete after a soft reset! :approve:
  Reply With Quote
Old 07-31-06, 09:58 PM   #5 (permalink)
Aximsite All Star
 
Join Date: Mar 2006
Location: Cincinnati, OH
Posts: 762
Device: Motorola v635
Carrier: Cingular
Thanked 0 Times in 0 Posts
This sounds nice. Especially for a temp place to transfer files. Copying files over to the Axim is a huge problem. Even the smallest files take their time. Can you make more then one at a time?

Lets say, a 6mb for transfers and a 6mb for cache?
player911 is offline   Reply With Quote
Old 08-01-06, 05:40 AM   #6 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,582
Thanked 1 Time in 1 Post
Originally Posted by player911
This sounds nice. Especially for a temp place to transfer files. Copying files over to the Axim is a huge problem. Even the smallest files take their time. Can you make more then one at a time?

Lets say, a 6mb for transfers and a 6mb for cache?
You can't create separate ramdisks - only one.

However, if you relocate, say, the IEM cache there, it'll create a directory on its own there - that is, your stuff won't be messed up. You'll be able to use it for both caching and testing/quick transfer the same Ramdisk - they will not interfere in each other.
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
Old 08-01-06, 12:45 PM   #7 (permalink)
Aximsite Minor League
 
jowilk's Avatar
 
Join Date: May 2005
Location: California
Posts: 139
Thanked 0 Times in 0 Posts
hi, menneisys, great tread, copied the 6mb link to startup folder and moved pie cache, cookies, history and volatile to ramdisk. did a soft reset and worked fine. what is iem cache?

btw, to a diff. topic, my x50v does not have a value for flush period. do create it w/ db flush? can i set it at 100 like yours. i added the other site to favorites, your blog makes for great reading and very informative. thanks

since following your suggestions, my axim rarely freezes and i soft reset only on purpose. thanks again.
jowilk is offline   Reply With Quote
Old 08-06-06, 10:23 AM   #8 (permalink)
PocketChange
Guest
 
Posts: n/a
Been using the 8M disk, and also setup a link in startup to replace after a reset! Using Tweaks2k2, I set to place my PIE cookies, temp int files & history on the disk, and notice a nice difference in speed when using PIE!

After a reset, Tweaks automaticly puts these files back on the ramdisk, but the only problem is that my cookies are deleted when the disk is deleted on reset! I store my passwords for some sites, and they get tossed with my cookies!

This is great, but can't wait for the fix that keeps the disk after reset! :)
  Reply With Quote
Old 08-06-06, 10:28 AM   #9 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,582
Thanked 1 Time in 1 Post
Put the history / the cookies on, say, a storage card and ONLY the cache on the Ramdisk.
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
Old 08-06-06, 10:43 AM   #10 (permalink)
PocketChange
Guest
 
Posts: n/a
Originally Posted by Menneisyys
Put the history / the cookies on, say, a storage card and ONLY the cache on the Ramdisk.
I thought about that, but using Tweaks2k2, it doesn't give the option of splitting them up! I like option of having the disk recreated and the PIE stuff automatically placed on it after a reset! I don't have too many important cookies, and don't reset too often, so I guess I'll just deal with it until a new version of the ramdisk is out...

Thanks for the suggestion, Menneisyys, and again for this really helpful thread! :approve:
  Reply With Quote
Old 08-07-06, 10:37 PM   #11 (permalink)
Aximsite Rookie
 
Join Date: May 2006
Location: WY and Mexico
Posts: 96
Device: Motorola Q
Carrier: Verizon Wireless
Thanked 0 Times in 0 Posts
Thank you, great tutorial, easy to understand. I got away with the 6mb RAMDisk on my X51V, I use it for NetFront cache and it is GREAT! I also placed it in my startup folder and created links in my start menu.
fjl307 is offline   Reply With Quote
Old 09-02-06, 03:54 AM   #12 (permalink)
Lat
Guest
 
Posts: n/a
Awesome; this is very useful.

Just a random question: is there a way to relocate opera cache without relocating cookies/history as well?

Edit: nm, it's
"in opera.ini [User Prefs] e.g.
Cache Directory4=\Ramdisk"

Last edited by Lat; 09-02-06 at 04:26 AM.
  Reply With Quote
Old 09-02-06, 04:30 AM   #13 (permalink)
Blogger
 
Join Date: Jul 2005
Location: USA
Posts: 2,411
Device: Apple iPhone 8GB
Carrier: T-Mobile - Unlocked
Thanked 2 Times in 2 Posts

Awards Showcase
Moderator Medal News Editor Medal Aximsite Active Bronze Member Aximsite Contest Winner 
Total Awards: 4

*Bows down to Mennyseiss*

I LOVE you! Thanks sooo much! This has helped me greatly, now if only it survived a soft reset, I could install Warfare Inc, and iG onto it.

Btw, I have Pocket Hack Master, and overclocked the RAM pretty high. Do you think you could do some tests for speed?

Edit> I just realized a GREAT use for this (once the reset fix is used)!

Currently, the Windows Vista theme for PocketSecure takes forever to load, due to the large size, and the numerous images. This should speed up the process to seconds.

Only problem is, that I wish there was a message saying like succesful loading/unloading, or something. Sooo annoying to not know if it worked or not, or if I clicked or not.
__________________
Kevin Song
Aximsite News Editor
Aximsite Moderator


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by ksong12; 09-02-06 at 05:36 AM.
ksong12 is offline   Reply With Quote
Old 09-03-06, 12:59 PM   #14 (permalink)
PocketChange
Guest
 
Posts: n/a
Originally Posted by ksong12
*Bows down to Mennyseiss*

I LOVE you! Thanks sooo much! This has helped me greatly, now if only it survived a soft reset, I could install Warfare Inc, and iG onto it.

Btw, I have Pocket Hack Master, and overclocked the RAM pretty high. Do you think you could do some tests for speed?

Edit> I just realized a GREAT use for this (once the reset fix is used)!

Currently, the Windows Vista theme for PocketSecure takes forever to load, due to the large size, and the numerous images. This should speed up the process to seconds.

Only problem is, that I wish there was a message saying like succesful loading/unloading, or something. Sooo annoying to not know if it worked or not, or if I clicked or not.
Great idea KSong! Although the new PS v4.0 will have some speed improvements, your idea may help even more!

But sure would be nice if RAMdisk could survive a soft reset! Anyone have any ideas about progress on this?
  Reply With Quote
Old 09-04-06, 10:36 PM   #15 (permalink)
Blogger
 
Join Date: Jul 2005
Location: USA
Posts: 2,411
Device: Apple iPhone 8GB
Carrier: T-Mobile - Unlocked
Thanked 2 Times in 2 Posts

Awards Showcase
Moderator Medal News Editor Medal Aximsite Active Bronze Member Aximsite Contest Winner 
Total Awards: 4

Thanks. About the surviving soft reset, it puzzles me. How can the HTC Himalaya survive? I would think, that when you soft reset, it erases the RAM, and reloads the OS, just like restarting on a PC.

Is it a hardware issue? Can somebody explain?
__________________
Kevin Song
Aximsite News Editor
Aximsite Moderator


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ksong12 is offline   Reply With Quote
Reply

Tags
compatible, device, ramdisk, wm5

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which device compatible with Axim X50V congbinhxuong X50 / X51 Forums 1 02-21-05 02:46 AM
OS X Compatible..? morken X30 / X3 / X3i Forums 0 10-01-04 04:51 PM
how to delete files on mobile device and on axim device fundad_asia Tips and Tricks 3 04-14-04 12:27 PM
WM 2003 Device replaced w/PPC 2002 Device djbinegar X5 Forums 2 12-11-03 04:04 PM
b compatible with g? WAD PDA/AXIM Newbies 8 11-28-03 08:39 PM


All times are GMT -5. The time now is 12:33 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-10 LeckMedia, LLC