English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 21 June 2005, 13:48   #1
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Question WB 3.x: Modify block size of built-in RAM disk?

Is this possible at all?
My WB HD has 512k blocks, but by selecting the RAM disk icon and 'Info' from the menu, my RAM disk shows indeed 1k blocks. This should go in line though, so that the RAM disk behaves exactly as my HD, and I'm not doomed to re-calculate blocks every time.

Is there any way to change this somehow, or must I install an external driver?
Thanks for any hints.
andreas is offline  
Old 21 June 2005, 14:54   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,027
The ram disk does not at all behave like a block device. It does not even use blocks.

If you want something in ram that behave like a block device, you should use the RAD.

You can change the block size of your hdd to 1024, though. Would gain some speed either.

Why do you insist on blocks ? Blocks are a virutal unit and might be different from device to device. E.g. CD-ROMs use 2K blocks.

Even with different file systems on HDD a file might need more or fewer blocks depending on how the file system stores directory information.

You should look at the file size. This is the only constant value.
thomas is offline  
Old 21 June 2005, 15:51   #3
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Quote:
Originally Posted by thomas
The ram disk does not at all behave like a block device.
Indeed, as due to my researches, it has got its very own and independent file system!
(Logical, for as a WB 1.3 user, I obscurely remember that RAM disk was solely possible to use if L:ram-handler was installed. And a handler is a sort of driver.)

Quote:
Originally Posted by thomas
Why do you insist on blocks ? Blocks are a virutal unit and might be different from device to device. E.g. CD-ROMs use 2K blocks.
Because list displays them as blocks, and not as bytes (unfortunately)
At least list 37.5 (WB 3.0) does that. With 1 file, you can read the file size off the line, but do you always want to ADD file sizes by calculator with 3 or more files? And dir (unlike MS-DOS dir) doesn't display file-sizes, either.

So blocks are a good alternative as long as you can assume they're in constant size (at least with both diskettes and [the gross of] hard drives!)
Or you have to install 3rd-party tools.
Mind you, I have never been a keen mouse-clicker. I still do most of my operations on console, as it's simply faster than clicking your way through it all. Moreover, you will ALWAYS have to change between mouse, keyboard, mouse, keyboard ...

Quote:
You should look at the file size. This is the only constant value.
If possible yes.

Last edited by andreas; 21 June 2005 at 16:10.
andreas is offline  
Old 21 June 2005, 15:55   #4
Duke
HOL-Team
 
Duke's Avatar
 
Join Date: Apr 2002
Location: Germany
Age: 43
Posts: 520
Send a message via ICQ to Duke
Maybe there are some replacement dir/list tools on aminet which show the total size?
Duke is offline  
Old 21 June 2005, 15:59   #5
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
I think there are. Yet I always assume the worst case, and I'm eager to both know a way to do it with tools you have "aboard", and a way to do it with 3rd-party tools.
andreas is offline  
Old 21 June 2005, 16:34   #6
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,027
List shows the file size in bytes. Only the summary shows a number of blocks. But this is a fake anyway. It does not recognise directory blocks.
thomas is offline  
Old 21 June 2005, 20:46   #7
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Quote:
Originally Posted by thomas
List shows the file size in bytes. Only the summary shows a number of blocks.
Ehhh ... then I was not clear. Of course I meant the *summary*
With a couple of files per list output, I actually do not always want to add up the sizes by hand
Hence the summary is a nice thing ... if the block sizes are equal, which as I've now learnt, are not expected to.
andreas is offline  
Old 22 June 2005, 19:41   #8
DrBong
HOL / AMR Team Member
 
DrBong's Avatar
 
Join Date: Dec 2001
Location: Australia
Posts: 2,632
@Andreas
Perhaps PatchRAM on Aminet might do the trick. Try it and let the rest of us know the results of your (mad) experiments
DrBong is offline  
Old 23 June 2005, 02:42   #9
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Would not make much sense.
This tool does not seem to intend changing the block size. It will simply fix the bug of reporting "100% full" of the RAM disk by the system by default.
andreas is offline  
Old 23 June 2005, 06:55   #10
Chuckles
The Ancient One
 
Join Date: Feb 2002
Location: Kansas City/USA
Age: 69
Posts: 685
Actually, reporting that RAM: is 100% full really isn't a bug, though it isn't particularly useful either. The capacity of the RAM: device changes dynamically as you copy data into it, so long as there is enough available ram for it to expand. So at any given point in time, it really is 100% full since the space allocated to it is completely taken up with whatever data has been copied to it. The percent full actually makes sense for RAD: though, since its size is predetermined. As for PatchRam, I'm not familiar with it, but it may be doing something as simple as calculating percent full as the ratio of the current size of RAM: vs. the total system ram. If so, it probably should also make some allowance for leaving some amount of that ram free for programs to use. Otherwise when RAM: becomes 100% full, you don't have any free ram available for any other use, and that wouldn't be very useful either.
Chuckles is offline  
Old 23 June 2005, 15:11   #11
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
I know, I know. But the documentation of PatchRAM tells about a "bug". That was not my words
andreas is offline  
Old 24 June 2005, 21:05   #12
DrBong
HOL / AMR Team Member
 
DrBong's Avatar
 
Join Date: Dec 2001
Location: Australia
Posts: 2,632
Quote:
Originally Posted by andreas
Would not make much sense.
This tool does not seem to intend changing the block size. It will simply fix the bug of reporting "100% full" of the RAM disk by the system by default.
I suggested it more or less as a utility to try as an experiment and hope/pray that it does what you want it to as a happy side-effect Unless there is some old, obscure utility in the Fred Fish collection, I doubt there is a any program that does what you want it to do in this case.
DrBong is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
"WARNING: end of partition > size of disk!" in log mark_k support.WinUAE 5 24 March 2012 19:13
Installing a hard disk - wrong size alkis21 support.Hardware 8 09 July 2010 17:55
Max disk size for GVP Impact A500 HD8+ Series II dkovacs support.Hardware 19 09 April 2008 22:51
Modify Panasonic JU-257A607P to Amiga? chaoticjelly support.Hardware 1 16 December 2006 16:37
Do I need to modify WB3.1 when using an '040? ketma support.Hardware 2 27 March 2005 00:33

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

Forum Jump


All times are GMT +2. The time now is 03:58.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.24212 seconds with 13 queries