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 - Lars

Pages: 1 [2] 3 4 ... 85
16
General Discussion / Re: Hobbes Retirement
« on: January 10, 2024, 03:48:31 pm »
As a user, how do I upload files to OS2SITE ? As far as I understand I currently cannot.
If I knew, I could already start to upload my files to OS2SITE instead of still uploading them to Hobbes.

17
Programming / Re: Installing VisualAge 4 on ArcaOS 5.x
« on: January 10, 2024, 02:28:44 am »
Do the "mixed CID" installation:

1) create a file "parms.txt" with the following content assuming that:
    a) D: is your installation drive letter
    b) D: is your boot drive letter (see /B: parameter)
    c) V: is your CD-ROM drive letter
    d) adjust the main path (VACInstDir) to your liking
    e) adjust the samples path (VACSampDir) to your liking
    f) adjust the OS/2 toolkit path (VACToolDir) to your liking

/O:VAC
/SET:VACInstDrv=D:
/SET:VACSampDrv=D:
/SET:VACToolDrv=D:
/SET:VACInstDir=IBMCPP40
/SET:VACSampDir=IBMCPP40
/SET:VACToolDir=Toolkit
/SET:VACMediaPath=V:\VACPP
/R:V:\VACPP\VACPP.RSP
/S:V:\VACPP
/B:D:

Then run this from the directory where you created file "parms.txt":

clifi.exe /A:B /F:"<WP_DESKTOP>" /PARMS:parms.txt

You will get an installation object on your desktop where you can then select/deselect installation options.

Also find attached a text file that explains how to setup the help system. The help system still works with Firefox, there is no need to use Netscape. The file talks about VAC 3.6.5 but the help system is the very same for VAC 4.

18
Programming / Re: Installing VisualAge 4 on ArcaOS 5.x
« on: January 09, 2024, 03:06:27 pm »
Did you try the Netscape browser based installation ?

If yes: even if you do not want to change drive and directory information for the installation directories, you need to reenter/reselect the drive/directory information, otherwise the browser will crash.

If you go with Alex' Install object suggestion, you can at least avoid that problem altogether.

19
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 08, 2024, 01:14:11 am »
Thanks, I had also opened a ticket. Yes, it looks like the thread creation in "fdrForceRefresh" leads to the accumulation of started threads that perform the actual refresh.

The parent method of "wpRefresh" seemingly needs to have the REFRESHINPROGRESS flag not set on entry in order to actually do something so yes, you would need to "lock out" an additional refresh via another means.

20
I have never understood why Russia never managed to make more out of their abilities and possibilities.

They have capable sports guys, they have capable and talented artists (some of the world best pianists among them), they have smart people (I have a big maths book written by a Russian mathematician in the 1950's or so), they have resources/raw materials and they have money.
But the result is just plain meagre.

21
Copy from the commandline. That works ok.
VBOXSF.IFS (from Virtualbox) seemingly does not properly handle the FS_COPY command for remote drives (because that's how shared folders are represented to the OS/2 guest).
It would be nice if you raised a bug with Virtualbox.

22
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 07, 2024, 01:09:30 pm »
Yes, you are right. I opened a ticket there. Maybe Rich will have a look. I would try my suggestion myself but I have never built XWorkplace myself.

23
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 07, 2024, 05:59:17 am »
It's a folder with 362 Icon files.

Thanks for sharing that little detail. I was able to duplicate this easily once I knew what you were talking about (though I suspect they were actually PNG icons, not "icons"). Blame the MM classes...

It's .ICO files of class WPIcon. That is not a subclass of any MM class. Also, I can open the /OS2 folder, hit F5 multiple times with the same effect.
The only thing that helps is to close the folder which will immediately terminate all those refresh threads.
Xworkplace's XFolder replaces the wpPopulate method. If at all, I would suspect this to be the culprit.

As a test, I have reduced to one core only. In that case, the second PMShell instance will not "accumulate" multiple threads. So, this is a serialization issue of the WPS.

I think, I have found the culprit, it is in XFolders "wpRefresh" override method (src\classes\xfldr.c).
That method needs to protect itself against being invoked when a Refresh is already ongoing.

Therefore, it should be extended like this:

SOM_Scope BOOL  SOMLINK xf_wpRefresh(XFolder *somSelf,
                                     ULONG ulView,
                                     PVOID pReserved)
{
    BOOL        rc;
    ULONG fFlags;

    // XFolderData *somThis = XFolderGetData(somSelf);
    XFolderMethodDebug("XFolder","xf_wpRefresh");

    fFlags = _wpQueryFldrFlags(somSelf);

    if (fFlags & (FOI_REFRESHINPROGRESS | FOI_POPULATEINPROGRESS))
    {
       return FALSE;
    }

   _wpModifyFldrFlags(somSelf, FOI_REFRESHINPROGRESS,FOI_REFRESHINPROGRESS);

    rc = XFolder_parent_WPFolder_wpRefresh(somSelf, ulView, pReserved);

    fdrForEachOpenInstanceView(somSelf,
                               stb_UpdateCallback,
                               2);           // update

    xthrPostWorkerMsg(WOM_REFRESHFOLDERVIEWS,
                      (MPARAM)somSelf,
                      (MPARAM)FDRUPDATE_TITLE);

   _wpModifyFldrFlags(somSelf, FOI_REFRESHINPROGRESS,0);

    return rc;
}

I think it would also be a good idea to remove the "xthrPostWorkerMsg" as there is no need to update the window title of a single refreshed folder and it also executes asynchronously (so, either reset the FOI_REFRESHINPROGRESS flag in the window function posted to from "xthrPostWorkerMsg" or better remove it completely from this spot).

Is there any proper place where I can raise a problem report ?

24
The Virtualbox provided additions have a fixed "VBoxSF.ifs" for quite some time now. It was fixed in >= 6.1.32 and is working just fine (with shared folders) with the provided "VBoxSF.ifs".
See: https://www.virtualbox.org/ticket/19453

For the same reason,whenever you update Virtualbox you should always also update the complete guest additions (available as a "virtual device" called "guest additions").

I have never found a need to update gengradd.dll but in case it matters for your sytem:
For your graphics problem, unlock \os2\dll\gengradd.dll and overwrite with the gengradd.dll that is part of the guest additions. However, do not copy the lib*.dll files from the guest additions as they are outdated/no longer needed.

25
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 06, 2024, 01:36:44 pm »
It's a folder with 362 Icon files.

Thanks for sharing that little detail. I was able to duplicate this easily once I knew what you were talking about (though I suspect they were actually PNG icons, not "icons"). Blame the MM classes...

It's .ICO files of class WPIcon. That is not a subclass of any MM class. Also, I can open the /OS2 folder, hit F5 multiple times with the same effect.
The only thing that helps is to close the folder which will immediately terminate all those refresh threads.
Xworkplace's XFolder replaces the wpPopulate method. If at all, I would suspect this to be the culprit.

As a test, I have reduced to one core only. In that case, the second PMShell instance will not "accumulate" multiple threads. So, this is a serialization issue of the WPS.

26
Multimedia / Re: MMIO high storage utilization !
« on: January 06, 2024, 01:15:33 am »
It all depends on how the IOProc is written.
You can load the whole FLAC file and convert into a WAV file and hold the result in memory. That makes it easy to implement seeks,reads and writes on the converted file (which is necessary as the MMOS2 can really only play/record WAV files). But it comes at a high cost in memory as WAV needs a lot of memory.
The alternative is to work blockwise, if the source format (FLAC in this case) is organized in this way because then, only a block of input data has to be converted but not the whole file. This is more memory friendly but also more difficult to implement (think about a seek half way into the WAV converted file: what would that location match in the FLAC source file?)
I suspect that the FLAC IOProc makes use of a library that is meant to convert a complete FLAC file into a WAV file and therefore that would match the first approach.

27
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 05, 2024, 01:23:09 pm »
It's a folder with 362 Icon files.

Thanks for sharing that little detail. I was able to duplicate this easily once I knew what you were talking about (though I suspect they were actually PNG icons, not "icons"). Blame the MM classes...

It's .ICO files of class WPIcon. That is not a subclass of any MM class. Also, I can open the /OS2 folder, hit F5 multiple times with the same effect.
The only thing that helps is to close the folder which will immediately terminate all those refresh threads.
Xworkplace's XFolder replaces the wpPopulate method. If at all, I would suspect this to be the culprit.

28
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 04, 2024, 09:07:04 pm »
I cannot replicate Lars' failure mode either.

If you want to use top to monitor threads, there is an easier way.

Use the Display menu to select Process Details so the thread count is always visible.  Use the Sort menu to sort by Name so that the process list does not change so much.  You might want to increase the refresh rate with Options ->
Refresh Rate.

Lars, when you say many, how many is many?  I tested with a folder containing 3000+ files.

It's a folder with 362 Icon files. Hammering F5 with that folder opened, I see the second instance of PMSHELL running with 61 threads. And it clearly depends on how many times I press F5.

29
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 03, 2024, 09:20:29 pm »
Hi Lars

Either F5 does not "Refresh" or doing so does not cause any problems with the Ryzen5 5600G with SMT enabled - TOP does not show any extra pmshell entries at all, just the usual 2 (WPS and Warpcenter). Possibly 300+ objects in a directory is not enough to cause the problem ...


Regards

Pete

I am not talking about additional pmshell instances. I am talking about the number of threads of the second pmshell instance.  In TOP, hit T and then use the arrow keys to select the second pmshell instance (the one with the larger PID), then hit Enter to get the list of threads of that process. Each F5 keypress will add a new thread.

30
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 03, 2024, 12:15:37 pm »
Hello, by turning on Hyper-Threading on my T14s (1st gen) I had experienced with ArcaOS 5.1 (UEFI).
1) I see 8 processors now the CPU meter widget.
2) Sudden computer/desktop freeze, mouse keep working, clock stops and no Ctrl+Alt+Del works.  I can not tell exactly when it happens, sometimes is like 4 minutes before reboot and sometime 10 minutes. I had three freeze for what I had used the T14s today. Usually when I run Firefox for a while.
3) Sometimes boot fails and freezes on the ArcaOS 5.1 logo.

In my case I prefer to turn off Hyper-Threading for the moment.

Regards

It's not only hyperthreading that is causing the problem. I have the same problem as you do but on my AMD system I had enabled "only one core per unit" which basically amounts to turning "hyperthreading" off.
What I discovered recently is that especially the WPS is prone to lockups of all sorts.

You can easily test for yourself: open TOP and look at how many threads the second instance of PMSHELL is running. Then, open a folder with many files and hit F5 ("Refresh") rapidly multiple times. Then switch over to TOP and have a look at how many threads have piled up for the second instance of PMSHELL.EXE.

That means, that somehow hitting "Refresh" always schedules a new thread for doing the refresh asynchronously in the background. I initially suspected it had something to do with XWorkplace so I disabled a couple of folder functions like "Turbo Folder" and "automatic refresh of folders" but it did not make a bit of a difference.
The refresh mechanism is obviously flawed by design as it will allow another triggering of refresh while a refresh is currently ongoing plus it schedules a new thread while it could continue to use the one that is already in existence. All these threads then seemingly block each other and on my system it can take up to a couple of minutes until they finally unravel (or the WPS hanging for good). All this refresh activity will not become a problem unless you decide to copy/delete or move files while all that refresh is going on. If you attempt to do that, the WPS will hang for the aforementioned number of minutes.

Finally "SMP" on OS/2 is not really "SMP" (any more). It used to be "SMP" with OS/2 2.1 SMP but then it was decided to route all interrupt activity to only CPU0 so that device drivers written for single core sytems would still continue to work (which by the way is also not always true if, for example, you are using context hooks). That clearly is a bottleneck because for example, you cannot use Intels capabilities to route an interrupt to the core that has least recently been used (load balancing in HW). I would not call that "SMP". "SMP" means that all processor cores are alike and that all cores perform the same activities (why do you think Intel has foreseen to route an interrupt to any of the existing cores ?).

What this all leads to is that the WPS is actually performing better if you have less CPU cores and not more.

Pages: 1 [2] 3 4 ... 85