Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dariusz Piatkowski

Pages: [1] 2 3 ... 83
1
Programming / Re: shared memory value - Odin win32k or DosQuerySysInfo???
« on: September 26, 2023, 10:53:38 pm »
Hi Dave,

Wouldn't using win2k.h introduce a dependency in win2k.sys, which is now depreciated IIRC.

Somehow this must not be the case: I've had PUMonitor running on my machine for quite a few years now...I did actually make a few small changes to deal with my multi-core box back in 2020 and I do NOT run the win32k.sys driver on my machine.

Having said that, I do have the Odin runtime installed, so if anything I suspect that the LIBs included with the PUMonitor source tree are in fact making use of the ODIN DLLs...the only problem here is that 'DLL Tree' doesn't actually show anything like that.

2
Programming / shared memory value - Odin win32k or DosQuerySysInfo???
« on: September 26, 2023, 10:08:32 pm »
I'm making some adjustments to the PUMonitor utility to show the largest available shared memory area (low shared memory I believe) alongside the current 'available memory' estimate.

Specifically, the PUMonitor utility relies on win32k.h definitions and library calls:

Code: [Select]
/* $Id: win32k.h,v 1.11 2001/03/15 20:03:10 bird Exp $
 *
 * Top level make file for the Win32k library.
 * Contains library and 32-bit IOCtl definition.
 *
 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
...

That library has a K32SYSTEMMEMINFO record which appears to already collect the shared memory information:

Code: [Select]
...
    /* Virtual Memory manager info. */
    ULONG       ulAddressLimit;         /* VM: Current user virtual address limit - use this for high arena check. (VirtualAddressLimit / 0x20000000) */
    ULONG       ulVMArenaPrivMax;       /* VM: Current highest address in the private arena. (vmRecalcShrBound()) */
    ULONG       ulVMArenaSharedMin;     /* VM: Current lowest address in the shared arena. (ahvmShr) */
    ULONG       ulVMArenaSharedMax;     /* VM: Current highest address in the shared arena. (ahvmShr) */
    ULONG       ulVMArenaSystemMin;     /* VM: Current lowest address in the system arena. (ahvmhSys) */
    ULONG       ulVMArenaSystemMax;     /* VM: Current highest address in the system arena. (ahvmhSys) */
    ULONG       ulVMArenaHighPrivMax;   /* VM: Current highest address in the high private arena - aurora/smp only. (vmRecalcShrBound) */
    ULONG       ulVMArenaHighSharedMin; /* VM: Current lowest address in the high shared arena - aurora/smp only. (ahvmhShr) */
    ULONG       ulVMArenaHighSharedMax; /* VM: Current highest address in the high shared arena - aurora/smp only. (ahvmhShr) */
...

Just looking at that single header file I see the following functions being called out:

Code: [Select]
/*******************************************************************************
*   External Functions                                                         *
*******************************************************************************/
/* Win32k APIs */
APIRET APIENTRY  libWin32kInit(void);
APIRET APIENTRY  libWin32kTerm(void);
BOOL   APIENTRY  libWin32kInstalled(void);
APIRET APIENTRY  libWin32kQueryOptionsStatus(PK32OPTIONS pOptions, PK32STATUS pStatus);
APIRET APIENTRY  libWin32kSetOptions(PK32OPTIONS pOptions);

/* "Extra OS2 APIs" */
APIRET APIENTRY  DosAllocMemEx(PPVOID ppv, ULONG cb, ULONG flag);
APIRET APIENTRY  W32kQueryOTEs(HMODULE hMTE, PQOTEBUFFER pQOte, ULONG cbQOte);
APIRET APIENTRY  W32kQuerySystemMemInfo(PK32SYSTEMMEMINFO pMemInfo);
APIRET APIENTRY  W32kProcessReadWrite(PID pid, ULONG cb, PVOID pvSource, PVOID pvTarget, BOOL fRead);
APIRET APIENTRY  W32kHandleSystemEvent(ULONG ulEvent, HEV hev, BOOL fHandle);

/* Helper function */
USHORT APIENTRY  libHelperGetCS(void);
...

In particular PUMonitor uses the W32kQuerySystemMemInfo function to retrieve the existing physical available memory information (cbPhysAvail), and it would seem the following would provide what I'm looking for:

ULONG       ulVMArenaSharedMin;     /* VM: Current lowest address in the shared arena. (ahvmShr) */
ULONG       ulVMArenaSharedMax;     /* VM: Current highest address in the shared arena. (ahvmShr) */

However...I haven't been able to find any references and DEV explanations for these, so I'm curious if anyone has used these?

The DosQuerySysInfo is a known way to get this, but obviously I'd rather not re-invent the wheel if I can use the existing approach.

As always, appreciate the feedback!

3
Applications / Re: Installing VisualAge C++ 3.0 on ArcaOS 5.1.0
« on: September 10, 2023, 10:36:55 pm »
As a compiler, 3.65 is generally to be preferred over 3.0. Not only is it a newer iteration of ICC (and has more recent fixes), it supports more recent language features like (like 64-bit integers, as noted).
...
That said, one big point in 3.0's favour is its INF formatted compiler documentation.  3.65 uses the NetQuestion HTML documentation system, which is bloated, intrusive, and in general a pain to use.

The NetQ service can be a PITA to setup, but once running I have found it to be incredibly valuable in terms of being able to scan through vast amounts of info that a newbie (like myself) simply has not "gut feel" for knowing precisely WHERE to find that info, thus INF files are great fountains of knowledge but it's a freaking steep mountain to climb when you are way wwwaaaayyyy down there at the bottom! lol

Robert, take a look at a couple of troubleshooting notes I saved up from 'way back when', they will help in getting NetQ up and running.

Re: the compiler itself: I have 3.6.5. here, as well as 4.x, both of which have multiple fixes (3.6.5 has two fixpaks, 4.x has a single one), but both have some one-off binary fixes that you used to be able to find here and there.  Let me know if you want to see these and I'll toss them on my FTP server (PM me).

4
Applications / Re: Sharing drives
« on: September 02, 2023, 04:45:11 pm »
Rick,

I think what you are asking about pertains to running a Samba server on the OS/2 side so that you can share one of your local directories, yes?

I do not have this configured here, but that server component does certainly exist and can be deployed. Not sure though if ArcaMapper, or NetDrive for that matter have any bearing on that functionality: in other words, the Samba server config is entirely manual and separate from those two.

To accomplish what you are talking about I found it much easier to create a separate share on my NAS box which is accessible by all other LAN devices. I use that as my exchange gateway and that does not require me to run the Samba server on my OS/2 box.

Granted, that approach works b/c I do NOT need to dynamically share massive amounts of OS/2 data.

5
Applications / Re: Arca Mapper
« on: September 01, 2023, 02:15:25 pm »
Alex is the guru on this subject (the author after all), but if you are looking for the locations of the binaries themselves, here is what I have on my machine (keep in mind, this is NOT AOS install, rather 4.52 with the addition of ArcaMapper):

\usr\bin

where I have the following EXEs:

1) CREDMAN - Logon, Credential Manager (/manage parm)
2) CONNECT - New Connection, Manager Connection (/manager parm), Restore Connection (/restore parm), Preferences (/pref parm)
3) BROWSER - Network Browser

6
Applications / Re: OS/4 (technical details only)
« on: August 23, 2023, 04:15:56 am »
OS/4 Kernel swaps memory directly with 4Gb+ region, without involving IFS, etc. (starting from ver 6254 ).

No setup is necessary. If  4Gb+ mem is installed, 1.2Gb of it  will be used for swapping.

Enjoy a really fast swapping.

Nice!

...what happens if I had allocated some of that space to a RAMDISK? Will that config be respected, or is it that I effectively lose that space in my RAMDISK?

7
Setup & Installation / Re: Changes in title bar possible?
« on: August 15, 2023, 01:59:06 pm »
The next release of XWP will allow you to set the text size for menus, titlebars, folders, and dialogs system-wide. Everything (including titlebars) will be scaled accordingly. There will also be a new release of Styler to accommodate these changes.

Oh, that's awesome!!!

I've been trying to figure out how to enlarge the WPS WarpCenter menu font size...the 9pt is just a little bit too tiny for these old eyes...

8
Utilities / Re: hardware information
« on: August 10, 2023, 12:35:04 am »
Hi Dariusz,
Is your motherboard really a Pizza Box ECO Software Mamaboard?

LOL...nope!!!

...but I did say that 0.9x release is a 'work in progress'...didn't I???  8)

Truth be told, I think Sysinfo/2 is a bit of abandonware perhaps? It's been a while since I've used it, and the earlier version always seems to run into issues on my machine, as it the PCI file is not found (even when present in the same directory as the program), and my whole machine goes into a bit of a hang eventually...only killing sysinfo fixes that.

9
Utilities / Re: hardware information
« on: August 08, 2023, 11:58:05 pm »
Hi ivan,

I like what Sysinfo/2 does.

The older version (0.8.4) is a little problematic for me, however the test 0.9.0 version works nice, other than the fact that it's not fully finished.

Take a look at some screenshots.

10
Applications / Re: Registry editor
« on: July 14, 2023, 03:58:53 pm »
I wonder if my ini files are a "normal" size.

Directory of  H:\os2\os2*.ini

7-13-23   6:18       2,123,544      0  OS2.INI
7-12-23   9:03         305,745      0  OS2SYS.INI

Code: [Select]
6-30-23  3:03p     3,534,209      0 ----  OS2.INI
6-30-23  3:03p       600,592      0 ----  OS2SYS.INI

The OS2SYS.INI in particular continues to be a problem for me...sizewise its BIG and pretty much near the edge of managable. I say this b/c I am routinely seeing shutdown errors writing to that INI (after reboot it is corrupted and normally truncated to literally half that size).

Needless to say, multiple cleanup efforts have failed to shrink it down below that 550-600K size.

11
Programming / Re: Source Code Text Editor Suggestions
« on: May 26, 2023, 06:42:49 pm »
If you can find a copy (it does not appear to be sold, it can be found by poking around a bit) of Visual Slickedit, it does a fair job.
Dariusz Piatkowski created VSE_ModernTheme_0-6.zip, (on hobbes) which allows VSE to recognize many more OS/2 specific calls for highlighting....

Thanks Andy for the mention!  ;D

Yeah, Martin with all the various nuances that our VERY old version of VSE exhibits, it is the only editor I use.

Uber-customizable, you get to create Projects where each one can have it's own definition of Toolsets, so I have VACPP4 project, and GCC projects, and yet the same IDE buttons work as you would functionally expect them to because I can define what each button actually executes (along with the parameters, etc.).

My VSE_ModernTheme package was an attempt to bring a little bit of font/colour scheme refresh. As I started to dig into the GCC header file scans I paused because I actually started to think that the VACPP and GCC stuff should not be mixed, and since VSE provides for a way to differentiate these, and that includes actually loading Project specific configurations, I could actually define separate schemes, etc.

Ultimately, the challange is that our VSE has gone DEAD a long time ago. Now, I wil say this (to second Andy's remark): look around (not even hard digging that we are talking about here) and you'll find it!

12
Applications / Re: LarsenCommander - new test version
« on: May 26, 2023, 06:05:56 pm »
Hello Andi!

As the others have stated: big Thank You!!!

...Main difference to older releases is - I reenabled big buffers for file copy operations...

The max. copy buffer size in old releases was determined by a simple algorithm and based on the setting in Options - Various - File Copy/move tab. I had to limit the buffer in some 1.7. release to 60k cause there was a subtle bug in ndfs DAV plugin which leads to some zero bytes in large files copied with the help of big buffers....

So I'm curious about this: does the current Max Buffer setting still function, or is that now ignored by your enhanced logic?

I had previously set this to 10K, now set to 64K, tested across the local as well as LAN devices (Win boxes as well as a NAS), all still good.

OK, so I do have a 'feature request': WHEN looking at the contents of a ZIP file do you think you might be able to enable object recognition and the use of system-wide settings instead of the default editor that's defined in LCMD settings?

I'm literally thinking:
1) TEXT is fine
2) JPG, GIF, etc...do not work
3) MP4, AVI...do not work

...so am I perhaps missing something here, or is LCMD really limitted to just being able to treat everything inside a ZIP  file as a TEXT file?

Thanks!

EDIT
====

I clarified that we are talking about ZIP file contents here...my original post did NOT spell this out at all!

13
Applications / Re: ANPM - libc upgrade error...?
« on: May 13, 2023, 04:33:23 pm »
Alright, so for what its worth, I ran a CLI update, here is the output:

Code: [Select]
--> Running transaction check
---> Package libc.pentium4 1:0.1.9-1.oc00 will be updated
--> Processing Dependency: libc = 1:0.1.9-1.oc00 for package: 1:libc-devel-0.1.9-1.oc00.pentium4
---> Package libc.pentium4 1:0.1.10-1.oc00 will be an update
--> Running transaction check
---> Package libc-devel.pentium4 1:0.1.9-1.oc00 will be updated
---> Package libc-devel.pentium4 1:0.1.10-1.oc00 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch           Version                Repository         Size
================================================================================

Updating:
 libc             pentium4       1:0.1.10-1.oc00        netlabs-rel       1.0 M
Updating for dependencies:
 libc-devel       pentium4       1:0.1.10-1.oc00        netlabs-rel       3.1 M

Transaction Summary
================================================================================
Upgrade       2 Packages

Total download size: 4.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libc-0.1.10-1 | 1.0 MB  00:00         ] 462 kB/s | 388 kB  00:01 ETA
(2/2): libc-devel-0. | 3.1 MB  00:01     ===- ] 1.3 MB/s | 2.8 MB  00:00 ETA
--------------------------------------------------------------------------------

Total                                           1.6 MB/s | 4.1 MB     00:02

Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
pci-ids-2022.07.02-0.oc00.noarch is a duplicate with pci-ids-2019.09.18-0.oc00.noarch
  Updating   : 1:libc-0.1.10-1.oc00.pentium4                                1/4

  Updating   : 1:libc-devel-0.1.10-1.oc00.pentium4                          2/4

  Cleanup    : 1:libc-devel-0.1.9-1.oc00.pentium4                           3/4

  Cleanup    : 1:libc-0.1.9-1.oc00.pentium4                                 4/4

Rpmdb checksum is invalid: dCDPT(pkg checksums): libc-devel.pentium4 1:0.1.10-1.
oc00 - u

The only unusual / concering issue would be this pci-ids remark:

"** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
pci-ids-2022.07.02-0.oc00.noarch is a duplicate with pci-ids-2019.09.18-0.oc00.noarch"

...but I can't imagine how that's impacting ANPM?

Anyways, CLI update was successful.

14
Hardware / Re: OS/2 Warp 3 Graphics Card Selection Input?
« on: May 11, 2023, 01:36:50 pm »
Marc,
Late response on my part, but if I recall correctly Matrox was a very strong OS/2 player back in the day. Their native drivers did well, as does the SNAP support, specifically the current readme shows the following:

Code: [Select]
. Matrox MGA Millennium, MGA Millennium II, MGA Mystique
. Matrox MGA Mystique 220, MGA-G100, MGA-G200, MGA-G400, MGA-G450
. Matrox MGA-G550, Parhelia, MGA-P750, MGA-P650

The Matrox MGA-G450 & MGA-G550 are also supported in the MultiHead mode, although not sure if these came in ISA configuration.

Finally, are you limitted to ISA only, or does that board have VESA connector?

15
Applications / Re: ANPM - libc upgrade error...?
« on: May 07, 2023, 12:59:08 am »
Hi Alex,

A bug in the conflict dialog initialization. I'll fix it...

Happy to test, just let me know...

...However, that won't fix your underlying problem, which is that yum is reporting a package dependency conflict.  You can try looking examining the end of %LOGFILES%\anpm.log, which records the raw output from yum.

Well, that's the weird part, ANPM.LOG is the first place I went, but that only shows:

Code: [Select]
...
----------[ 6 May 2023 10:24:03 ]----------
Executing: @python2.7 G:\UTIL\ANPM\scripts\yum_update_dep.py libc
Enabling temporary repository arcanoae-sub
Enabling temporary repository arcanoae-exp
Enabling temporary repository arcanoae-stage
Enabling temporary repository arcanoae-arcaos
No argument pipe.
Return code: 0

Nothing here looks unusual compared to all the other successful updates before...weird, no?

I haven't tried the CLI update yet, although it does appear to correctly recognize that the matching libc update is out there:

Code: [Select]
[G:\]yum list libc
Loaded plugins: changelog, downloadonly, ps, replace, verify
Installed Packages
libc.pentium4                    1:0.1.9-1.oc00                      installed

Available Packages
libc.i686                        1:0.1.9-1.oc00                      netlabs-rel

libc.pentium4                    1:0.1.10-1.oc00                     netlabs-rel

I figured it would be best to investigate through ANPM first.

Pages: [1] 2 3 ... 83