delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2020/11/09/21:48:45

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 2002:a05:6214:209:: with SMTP id i9mr17706791qvt.38.1604975706024;
Mon, 09 Nov 2020 18:35:06 -0800 (PST)
X-Received: by 2002:a25:7243:: with SMTP id n64mr23035121ybc.86.1604975705826;
Mon, 09 Nov 2020 18:35:05 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 9 Nov 2020 18:35:05 -0800 (PST)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: google-groups.googlegroups.com; posting-host=89.177.43.117; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
NNTP-Posting-Host: 89.177.43.117
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9f9bb82f-c773-418c-80d6-ab9c1b4b1bbeo@googlegroups.com>
Subject: CWSDPMI and VCPI preference over XMS
From: "RayeR (rayer314 AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Tue, 10 Nov 2020 02:35:06 +0000
Bytes: 2923
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 0AA2jFZf013482
Reply-To: djgpp AT delorie DOT com

Hi, maybe it was discussed in the past many years ago but I just want to know, if on modern PC sytems with 4GB+ RAM and running modern memory manager for DOS like JEMM386 in V86 is there any reason to prefer VCPI over XMS? The available memory via VCPI is usually just a fraction of available XMS. So I just tried to simply modify a condition at line 192 in valloc.c to pretend no enough VCPI memory available and force switch to use XMS. But I'm not sure if this can have some negative effect to CWSDPMI or running programs. Modified SRC + BIN to try here: http://www.rayer.g6.cz/programm/cwsdpmi7.zip
I don't want to disable VCPI by default in JEMM because I still run some older programs that wants VCPI and I just want to DJGPP programs avoid VCPI on same system. Other possibility to do it is to use HDPMI32 -r instead of CWSDPMI. I also found that there was reported a buggy behavior of EMM386 in DOS 7.10 that confused CWSDPMI to silent exit and nobody seems to fixed it yet, so another reason to avoid VCPI in CWSDPMI. https://groups.google.com/forum/#!topic/comp.os.msdos.djgpp/4UkalDo_tO8

BTW there's a hot new on field of DOS XMMs. Japheth extended the himemx.exe (now himemsx.exe) to support so called SXMS that is memory beyond 4GB. He introduced new XMS services to allocate such memory and it report itself as ver. 3.5. There's currently not much programs that can utilize SXMS but one of 1st is rdisksx for RAMDISK and also modified shsucdx that allocate it' buffers in SXMS.

It would be nice to modify CWSDPMI to cooperate with himemsx via this new functions. I know that CWSDPMI can use entire 4GB too but only in raw mode without any XMM loaded that is not ideal. I belive that implementaion would not be so hard, new API extension is quite simple: https://github.com/Baron-von-Riedesel/HimemSX/blob/master/XMS35.txt

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019