Groups | Search | Server Info | Login | Register
Groups > comp.os.os2.programmer.misc > #1924
| Subject | Re: Still alive? Memory. edm2? |
|---|---|
| Newsgroups | comp.os.os2.programmer.misc |
| References | <vnrbs8$1f9gv$1@dont-email.me> |
| From | Dave Yeo <dave.r.yeo@gmail.com> |
| Message-ID | <9AfoP.1970360$oR74.1712193@fx16.iad> (permalink) |
| Date | 2025-02-03 19:12 -0800 |
Iron Spring Software wrote: > 1. Is anyone still reading this NG? At least one of us. > > 2. I was curious about OS/2 memory allocation (DosAllocMem), and too > lazy to see if the information I want is in the redbooks, which probably > don't reflect the current status of ArcaOS anyway. ArcaOS is built on CP2 (Warp 4.52), so an up to date redbook would work. Easier to use ANPM to install the os2tk45 documentation, forget the exact package name and look at cp1.inf. > > At any rate I recalled that each call to DosAlloc allocates 64K (65536) > bytes, and my question was whether or not there was any overhead in the > allocated memory. I write a Q+D program that made two allocations of one > byte each, followed by two allocations of 64K, and in all cases the > addresses of the allocated memory were 64K apart, so no overhead. Before Warp v3, DosAlloc allocated 4kb blocks. Also not sure if allocating from high memory (objany) follows the same rule. From the documentation, ... Note: DosAllocMem and DosAllocSharedMem both allocate a block of memory of the size requested rounded up to the nearest page. On OS/2 Warp, the system allocates a 64K object without attributes on every allocation. For example, for a DosAllocMem call with a size of 1, the system allocates a 4096-byte block of committed memory plus 61440 bytes without attributes. ... > > [probably y'all knew this already] > > 3. I was going to make a note on the talk page for DosAllocMem page in > the edm2 wiki to help out any other clueless people who might happen > along, but either talk isn't implemented or I need to sign on because I > got a message something like "unable to handle this request" when I > clicked talk. Do you mean this page, http://www.edm2.com/os2api/Dos/DosAllocMem.html I don't see a talk page, but generally you do need an account to edit edm2 and IIRC, you have to ask Martin to set you up. There still might be parts not working after the server upgrade as well. Dave
Back to comp.os.os2.programmer.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Still alive? Memory. edm2? Iron Spring Software <Peter_Flass@Yahoo.com> - 2025-02-03 14:19 -0700
Re: Still alive? Memory. edm2? Dave Yeo <dave.r.yeo@gmail.com> - 2025-02-03 19:12 -0800
Re: Still alive? Memory. edm2? Peter Flass <peter_flass@yahoo.com> - 2025-02-04 06:09 -0700
Re: Still alive? Memory. edm2? "Andi B." <andi.b@gmx.net> - 2025-02-07 12:38 +0100
Re: Still alive? Memory. edm2? Peter Flass <peter_flass@yahoo.com> - 2025-02-07 08:08 -0700
Re: Still alive? Memory. edm2? "Steven Levine" <steve53@nomail.earthlink.net> - 2025-02-08 19:46 +0000
csiph-web