OS4 DepotLogo by Alkaron 
(anonymous IP: 54.224.18.114,1134) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (528)
   o Document (21)
   o Driver (87)
   o Emulation (141)
   o Game (852)
   o Graphics (456)
   o Library (88)
   o Network (200)
   o Office (56)
   o Utility (804)
   o Video (60)

Total files: 3848

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Utility » Shell » allocmem.lha

Allocmem

Description: A Shell command to reduce memory available
Download: allocmem.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 5kb
Version: 1.3
Date: 17 Jun 12
Author: Alex Carmona
Submitter: Alex Carmona
Email: AmigaOne/theworld net
Category: utility/shell
Replaces: utility/shell/allocmem.lha
License: Freeware
Distribute: yes
Min OS Version: 4.0
FileID: 7187
 
Comments: 0
Snapshots: 0
Downloads: 221  (Current version)
443  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
DESCRIPTION

AllocMem is a Shell command which temporarily allocates memory.

It's main purpose is to artificially decrease the amount of RAM available
without having to copy a large file to the RAM Disk.

POSSIBLE APPLICATIONS

ˇ Testing the behavior of programs under low memory conditions
ˇ Testing disk-based virtual (swap) memory
ˇ Simulating a ľA1 w/256MB RAM on an XE with 512MB+
ˇ Simulating a Classic Amiga w/128MB RAM on an A1
ˇ Wasting memory for no good reason ;-)

I did my best to make sure that it won't cause any crash, however the OS may
become unstable if you allocate most of the free memory, leaving less than a
few megs available. I could have added some safeguards against that but it
would prevent testing such a scenario so I deliberately chose to allow it.

The original motivation behind writing that command was that some bug in the
BrowserII copy function prevents it from working unless the amount of free RAM
is below 256MB, and I wanted an alternative to copying 100MB+ of data to RAM:
to make it work. 
Since then, Stephan Rupprecht wrote "AvailMemPatch" which took care of that
problem for all 68K apps. Thanks Stephan!


LICENSE

AllocMem is freeware.


HISTORY
1.7
- added LOCKED, UNLOCKED, CLEARWITHZERO, NOWAIT, and NOEXPUNGE switches

1.4
- added NOEXPUNGE switch to test without expunging libs/devs.
- added AVT_TYPE MEMF_PRIVATE as it doesn't seem to be set by default.
 
1.3
- Added SHARED switch to control the type of allocation

1.2
- Added more detailed shell output
- Fixed a bug where it didn't check that AllocVecTags() actually succeeded but
  still acted as if it had allocated the memory

1.1 (internal)
- Switched to AllocVecTags()

1.0
- First public release


--
Amiga... Duh!


Copyright (c) 2004-2017 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment