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 5 ... 85
31
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.

32
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.

33
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.

34
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.

35
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.

36
Applications / Re: ArcaOS 5.1 - First Impressions
« on: January 02, 2024, 06:16:19 pm »
Hi All

I have yet to discover how to turn off Hyper Threading with my MSI B450PRO mainboard / AMD Ryzen5 cpu - 6 cores but 12 "processors" reported by system POST.

Possibly I need to run Windows, install some AMD cpu control software...

Anyway, since installing 5.1.0 a few months back (early September) the only system freezes I get are when using Dooble (QT5) and that, from what I can gather in other discussions about Dooble, is likely caused by the qt code - and Dooble behaves exactly the same on an AMD FX4300 based system which most definitely does not have hyper threading.


My conclusion: AMD and Intel Hyper Threading seem to differ slightly and it could be worth trying Hyper Threading on AMD cpu based systems.


Regards

Pete

On AMD, you turn off "Hyperthreading" ( or the equivalent thereof) by selecting "only one core per package". At least that's how it shows up on my old Bulldozer based system.

37
Comments, Suggestions & Questions / Re: os2world website script problem?
« on: December 29, 2023, 03:16:17 pm »
Ok, then it seems that either modern Video devices no longer have a VGA compatible register set or that I somehow would have to enable the VGA part but I would not know how to do that.

38
Comments, Suggestions & Questions / Re: os2world website script problem?
« on: December 28, 2023, 01:53:39 pm »
Hm, your PCI exe output lists a "VGA device".
Can you try the attached ? There is an issue: a VGA compatible color device should have its register block be located at 0x3Dy and a mono device at 0x3By but it looks like many devices have their register block located at 0x3By even if they are color devices.

I have now hardcoded the register block at 0x3By in VSYNC.SYS. Can you try if that makes a difference ?

39
Programming / Re: Where to find Toolkit2.0 - SOM compiler .sc files....
« on: December 28, 2023, 12:49:49 pm »
Oops, I declared the wrong metaclass for the class. Find the fixed wpstest.idl attached.

40
Programming / Re: Where to find Toolkit2.0 - SOM compiler .sc files....
« on: December 27, 2023, 09:51:33 am »
Find attached an .IDL replacement file that should substitute the wptest.CSC file.

41
Programming / Re: Where to find Toolkit2.0 - SOM compiler .sc files....
« on: December 24, 2023, 02:32:28 pm »
If that does not work: tell me where I can find that CSC file and I convert it for you from yesteryear to present time.

42
Programming / Re: Where to find Toolkit2.0 - SOM compiler .sc files....
« on: December 24, 2023, 02:18:51 pm »
I've toolkit 2.1 and probably all newer ones. Even Watcom10.6 includes some .sc files. But the project I'm working on seems to need Toolkit v2.0.

I've no clue about SOM and classes and.... but there is one .csc file in my project which constantly bothers me. There should be a way to convert this .sc file to the newer .idl form. ctoi.cmd which is included in os2tk45. But it complains about a file in toolkit21
Code: [Select]
{0}[e:\_work\pmprintf\trunk] ctoi WPSTEST.CSC
WPSTEST.CSC:
"wpobject.sc", line 440: error: Override method "somInitClass" not in base class.
"wpobject.sc", line 444: error: Override method "somNew" not in base class.
"wpobject.sc", line 448: error: Override method "somRenew" not in base class.
Number of errors: 3
error in converting WPSTEST.CSC

So I think I need toolkit20. Where can I find it? Any other ideas? Maybe I try to disable all these SOM things in pmprintf cause I guess nobody will ever use pmprintf with som classes anymore anyhow.

Why would you bother? The SOM compiler of the os2tk45 is able to generate source/header files from the old style CSC files. There is a command line switch for it.

43
Comments, Suggestions & Questions / Re: os2world website script problem?
« on: December 17, 2023, 09:48:32 am »
That would mean that there is no HW that would offer the legacy VGA register set.
Can you provide PCI.EXE output for that system?
The driver checks for a VGA device on the PCI bus and should fail to load if it does not find any.

44
Comments, Suggestions & Questions / Re: os2world website script problem?
« on: December 16, 2023, 08:26:01 pm »
Here it is.

45
Comments, Suggestions & Questions / Re: os2world website script problem?
« on: December 15, 2023, 08:08:29 am »
I have now created a release on github.com/lerdmann/vsync/releases.

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