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 ... 70
Internet / Re: PMMail - corrupted folders?
« on: Today at 03:59:12 pm »
Hmm...I found where that "missing" folder actually is. The whole tree which this folder belongs to is actually placed elsewhere, and is part of another tree. That is how things are stored on the disk, just to be clear.

As to how this happened I have no clue, perhaps this was a result of me re-organizing my PMMail folders in the past? Small adds of a folder here or there, etc...nothing major though.

The good news is that the actual email MSG files are there, but of course the challenge is that they can not be found and therefore accessed from within PMMail.

To resolve I think I'm going to test the following out:

1) create a NEW parent folder elsewhere (off the Root)
2) create NEW folders for each of the folders currently in my "misplaced" tree
3) move the contents (email bodies) from the old folders to the NEW folders one-by-one

I will try a single folder first, see if it all stays in-sync and go from there.

Still interested in hearing your opinions, especially if you suspect there is something inherently "gone wrong" with my PMMail that needs correcting.


Internet / PMMail - corrupted folders?
« on: Today at 02:35:16 pm »
Hi Everyone,

I've been happily using PMMail [ (32798) - Mar 13 2020 17:32:02 +0000 (GMT)] for a while now. No issues, although occasionally at start-up it'll trap, meaning the WPS goes locked but usually after a few ESC-CTRL hits it'll re-awake. Mostly a nuissance really.

As best as I can tell I have never encountered any problems, however the other day I was putting away some new emails into a much much older folder and couldn't find the emails afterwards. I re-index that particular folder at first, no change, I then re-index that whole folder tree, still no change.

This morning I hit CLI and went looking for the actual email MSG file itself...lo' and behold, nowhere to be found...worse yet, that whole folder TREE is completely missing!!! ugh????

Now the strange thing (to me anyways) is that from within PMMail I am still able to access each one of the folder tree it looks like the stuff is still there (thank God, so I haven't lost anything it would seem), but attempting to move new emails into that tree does appear to send the messages into "nowhere".

So am I seeing some kind of a corruption here?

No idea at all how to troubleshoot this...any hints/suggestions would be greatly appreciated!



I went looking through the PMMail program logs and I think I found the matching entries for this email move transaction...however it appears to have completed just fine?

Code: [Select]
2021-12-08T08:19:15.033 (008)-I-MessageMoveMessage: enter. use mutex [1]                                                                                           
2021-12-08T08:19:15.033 (008)-I-MessageMoveMessage: moving from [Dariusz]:[Inbox] to [Dariusz]:[Mopar Archives]:[Engine Components]                               
2021-12-08T08:19:15.037 (001)-I-oswin_msg_drag: dragged [1] of [1] allowed of [1] requested                                                                       
2021-12-08T08:19:15.037 (001)-I-oswin_msg_drag: Dropped on Accounts/Folder                                                                                         
2021-12-08T08:19:15.039 (001)-I-oswin_msg_drag: leave                                                                                                             
2021-12-08T08:19:15.065 (008)-I-xmlfolder.profile_save: fld change [1], saving [Dariusz]:[Inbox]                                                                   
2021-12-08T08:19:15.072 (008)-I-xmlfolder.profile_save: fld change [1], saving [Dariusz]:[Mopar Archives]:[Engine Components]                                     
2021-12-08T08:19:15.080 (008)-I-MessageMoveMessage: leave.                                                                                                         

Multimedia / Re: How do I change this default behaviour?
« on: December 01, 2021, 03:35:17 pm »
Lars, everyone...

Yes, the complexity is ridiculous. But if Rich's suggestion means that the "first associated program" will open the file, then you'll also need to associate your desired program and it will have to the "the first".

That's the thing you guys, this has already been done. It's like the default associations have absolutely NO bearing on what MMOS2 will actually do. Take a look at this definition of mplayer object: the object types associated cover the MMAVI and MMMPG classes, then to top it all off I even included the file extensions.

...Since with Rich's suggestion, on a double click, the open action now is "the first associated program" and no longer the default action (which was "Play"), your program should then be called with the filename as the argument instead of the "Play" action invoked (which likely is to invoke the default MM device specified through MMPM2.INI ...)...

Yeah, my hope was that this would work. What was strange is that the newly created object (with Rich's command) was the ONLY AVI object that was changed to 'Video editor', all other AVIs that I have remained exactly as they were, even after a re-boot.

You know, I spent a little time yesterday looking at how to override the default behaviour in 'Play'. I expected to find a program object named 'Play', but did not. I also looked for 'Video editor', did not find that either. So that makes me think this is all internally implemented in the MM class, perhaps in one of the DLLs?

Multimedia / Re: How do I change this default behaviour?
« on: November 30, 2021, 05:30:02 pm »
Hi Rich,

...You can create a dummy object of a given class and use a setup string that will set the default 'OpenAs' for the entire class. I unpacked 'mmparts.dll' and confirmed that the string is in there. Here's how to do it using 'oo' - you could use REXX instead:
Code: [Select]
oo /n MMMPG mmtest.mpg "<WP_DESKTOP>" "CLASSDEFAULTVIEW=4096;"
After the file is created on the Desktop, you can delete it.

The default view value of '4096' means "the first associated program". I have no way to test this since I have CWMM installed, so I'd be interested to know if it actually works.

Nah, no luck Rich. I created the object, even re-booted just in case, but no change. What was curious is that the default 'Open as' for that object was 'Video editor', meanwhile the other AVI files are pointing to 'Play' instead.

Anyways, l suspect there is some other stuff that's causing the problem here. In fact I went as far as to deregister the MMAVI class but following re-boot I still had the same AVI file behaviour.

What a real PITA this has turned out to be...LOL!

Hardware / Re: Using a LaserJet 2100m on a Print Server
« on: November 30, 2021, 05:03:37 am »
Hey Mark!

...I've had for years a LaserJet 2100m which I want to set up on a D-Link DPR-1260 Print Server. I already have an HP Color LaserJet 3500 attached and printing nicely, using CUPS but am having trouble setting up and printing to the LaserJet 2100.

Just because I was familiar with it I've set up my printers in the past using the LPD protocol. One day I plan to play around with IPP, but that's for another day, unless the solution may lie there.

The printer was originally used connected directly to one of my towers, and has an external parallel port built in. I've got a Parallel Port to USB adapter attaching the printer to the Print Server. With the printer turned on and addressing the IP address for the Print Server ( on my network) I reach the print server and get the output which I attached below (Dlink Screen.JPG).

As the USB Port (#4) reports an unknown printer, I'm not sure if thats related to the age of the printer, or whether the printer is just not communicating. I was thinking of trying to ping the printer on my network, but its been quite a while since I did that - if someone can jog my memory as to what I need to enter to undertake that it would be appreciated (I assume Print Server IP address, but also need to know what syntax to use to add the Port address)...

So what I'm thinking is that your D-Link Print Server should be exposing the attached printers through some kind of interface that differentiates the printers from each other. By the looks of it, that difference is the port# that the printer is going to respond on.

My Brother has a NIC with a print server built in, which means that my OS/2 setup is using a SLPR port driver to point to the printer's IP address (which would be your D-Link Printer Server IP address I believe) and a specific interface, which in the attached photo is the 'LPD printer' field, and for you that is probably going to be the printer's port number.

In my case I'm using the BINARY_P1 service of Brother's built-in print server.

Worst case, given that your D-Link Printer Server is at, you could point the SLPR port driver to and perhaps look to see what service names (if any) are exposed and can be used in the 'LPD printer' field.

Multimedia / Re: How do I change this default behaviour?
« on: November 29, 2021, 04:34:11 pm »
Hi Lars,

...Anyway, the "default" MM device for some given file type/file extension is defined through MMPM2.INI. And unfortunately, that "device" has to be an MCI device which essentially boils down to being a DLL with a defined entry point and command support. Certainly not any arbitrary EXE file. It would be possible to "wrap" invocation of an EXE file as a MCI device but this has to be implemented...

OK, good pointer. I found the following sections in MMPM2.INI file:

Code: [Select]
 PRODUCTINFO=Software Motion Video
 EATYPES=Digital Video
 ALIASNAME=DigitalVideo Player

...therefore, the 'Digitalvideo' definition (see below section) clearly points to the above 'Software Motion Video' and 'OpenMPEG Video' as the providers of that playback functionality (at least as best as I can interpret this).

Further on, the following is defined in the 'Drivers' section:

Code: [Select]

Therefore, the IBMDIGVIDPLAYER01 & IBMMPEGPLAYER01 are the pertinent sections, where the 'MCDDRIVER=' field in both cases appears to point to a matching DLL file in the \MMOS2\DLL path.

Beyond this, the contents of MMPMMMIO.INI spell out the actual installed & registered details.

I am fairly certain that both of these are part of the default OS/2 MM install though, so I suppose one could try the official un-install process, although I'm worried that would remove far too much of that multimedia functionality.

Based on the feedback you provided I went looking through 'Multimedia Subsystem Programming Guide' (part of the OS/2 Toolkit), and under the 'Installation Requirements' one will find 'Installing an I/O Procedure' section. Of course that will simply update the MMPMMMIO.INI file, but it still needs the DLL itself that would allow a re-mapping of various file extensions to a user-defined program.

Taking the example of the AVI IOProc from above, so the SVMC.DLL file, I find the following procedures being exported:

Code: [Select]
Procedures Exported by Ordinal:
    0 @#IBM:14.075#@
    1 mciDriverEntry

Therefore, I'm curious if one was to:
1) build such a DLL that would re-map the call to a mplayer.exe (or a user defined EXE for that matter), would it be sufficient to define in that DLL the matching mciDriverEntry procedure?

2) once that procedure is created, would it simply call the EXE from there?

I feel like the above is a terrible oversimplification, but heck, that's all I know at the moment! LOL

Multimedia / Re: How do I change this default behaviour?
« on: November 28, 2021, 06:23:21 pm »
Hi mauro,
Hi Dariusz, I had simply changed the default application for opening my media files using Assoedit (see images).

Yeah, I thought that doing this should take precedence over anything else, but in my case that is not the outcome. I suspect it is because of the MM file classes, but that's a standard OS/2 MM install and I figured basically everyone else out there would be impacted by this, unless I have of course installed something else in the past that I have simply forgotten about since then!

Multimedia / Re: How do I change this default behaviour?
« on: November 28, 2021, 06:21:37 pm »
Hi Pete!

...The cwmm MediaFolder help file - usually at [BootDrive]:\MMOS2\MEDIAFLD\DOC\mediafldr.inf provides an answer if using smplayer or vlc. See the section Hidden Features, Replace AVI Player as an example. Not sure if it can be tweaked to use mplayer without a frontend though...

Ahh, so these are the Chris W's MM classes I think, which I do not have installed on my machine, so that option is not currently available. Not to say I won't pursue it, just that it's not the setup I have deployed at the moment.

Multimedia / Re: How do I change this default behaviour?
« on: November 28, 2021, 06:18:42 pm »
Hi Martin,
I don't think it is good to deregister any class for what you want to do?

When you right click over the AVI or MPG file, and select "Open as", which options do you see?...

I agree, I do not want to de-register any classes, unless there is a single AVI/MPG specific class that will NOT impact anything else. By the looks of it so far, these both appear to be default OS/2 multimedia classes though, and for that reason I think it's best that I do not touch them.

Take a look at the attached screenshot for what "Open as" looks like. Basically all my other video apps show, along with the default OS/2 ones.

I can certainly force each AVI file to open using mplayer, but that requires me to open it's Settings and specifically select mplayer, as opposed to relying on normal OS/2 associations.

Regarding the "Associations Set Up" docs...very nice!!! I am aware of all of these options and have already tried them, but that's a great write-up for anyone that's not had the chance to work through these in the past.

Multimedia / How do I change this default behaviour?
« on: November 27, 2021, 08:44:49 pm »
So I've got a bunch of AVI and MPG video files: family get-togethers, various car events, etc. My box currently insist on always opening the AVI and MPG stuff using the ancient default OS/2 AVI player. How the heck do I change that?

Before you say "adjust the associations", well they already have been. All of these media files are pointing to mplayer as the default, and yet each time I double-click on a AVI file the default viewer plays.

So I'm thinking that's because the 'Current class' is defined as MMAVI for the the AVI files and MMMPG for the MPG files. Meanwhile the MP4 stuff is simply showing up as XFldDataFile (which is to be expected given my XWP install).

Do I need to un-register a particular class?

Take a look at what currently shows up under 'Codecs' TAB of the Multimedia object (see attachment).

Storage / Re: JFS cache sizing, and system "speed-up"
« on: November 26, 2021, 07:11:36 pm »
Hi Doug,

...I did up my cache to 256000, on my main machine. It created the cache, but then Firefox won't start, complaining that XUL is defective. I put it back to 132000 and it is working.

Then, I have been playing with LW, MIN and MAX buffers. That is possibly making some difference. I will know more on Monday morning, when I do my backups. There is an indication that the single processor machine doesn't like it much, so that will go back to what it was (the LW part anyway).

Is XUL marked to load high? Otherwise the only follow-up is to see if it's been LXLITE compressed? (not sure if DLLs get processed by LXLITE, I think they do...?)

Re: LW, MIN and MAX, same here. As I change these I continue to log to see they impact these are having.

Storage / Re: JFS cache sizing, and system "speed-up"
« on: November 26, 2021, 07:04:56 pm »
My ramdisk does persist over warm reboots (last computer, it even persisted over a couple of seconds of no power) and every time the browser crashes, which is too often lately, the whole cache gets invalidated. ya! My machine does not retain the ramdisk contents, I had originally tried to do what you are talking about becuase I rarely actually physically shut OFF the machine. Instead it's almost always a re-boot.

...As for Thunderbird, I'd think the cache is mostly used when displaying web pages, which it is quite capable of doing. I even have an add-on, thunderbrowse, which exposes displaying web pages.
For SM, you can point the cache in the Preferences under Advanced-->Cache. I assume that for TB, you have to open the Options-->Advanced-->Config Editor and create the same preference as for Firefox.

Well, it didn't take long for me to read up on the TB specifics. The FF parameter setting is exactly what TB works with. I initially shifted my TB cache to the ramdisk, but then noticed something, see further details below...

Now there is something that seems different, although maybe that's just because I previously did NOT pay attention to it: in TB each time I click on a different folder I now have the clock icon pop up for just a couple of seconds. I honestly do NOT remember seeing this before, and of course I have no idea if this is a result of moving the cache to the ramdisk.

So to test this out, I've actually gone back to a DISK based cache, will give it a few days worth of use and see if that's what causing it.

Each time the clock icon pops up I do see TCPIP TB is certainly fetching something. Haven't captured that and pumped it through Wireshark yet to see what it's actually doing, but I suspect it's going to the server to read something.

Storage / Re: JFS cache sizing, and system "speed-up"
« on: November 26, 2021, 03:08:30 pm »
Hi Dave!

For the Mozilla cache, I use the ramdisk, fairly easy to setup with SM. For Firefox need to use about:config to create preference something like this (H: is my ramdisk) "browser.cache.disk.parent_directory;H:\mozilla\firefox"

Hmm, from my perspective I'm not sure what the longer-term performance gain would be in terms of doing a FF ramdisk cache, after all I would want the cache to persist in order to speed up the load of the bigger sized web page elements the very next time they are requested. I suppose if you want to keep the profile clean (and smaller sized), and do not care to carry over the cache past any re-boot, that would do it.


...for the Thunderbird client that is absolutely what i'm going to take a look at. I see no point in keeping that cache persistent since emails will always change, and I would think that causes the normal disk cache to just fill up with stuff that rarely ever gets re-used, with the exception of very few standard emails: bills from the same companies, etc.

I do not have SM installed here so I'm not sure what you mean by "fairly easy to set up", but would that still hold true for TB? If so, can you point me in the right direction before I attempt to create that FF-like preference?

In the meantime I'm off to research the TB cache settings a bit...


Storage / Re: JFS cache sizing, and system "speed-up"
« on: November 25, 2021, 06:35:45 pm »
Here are the Theseus metrics from a Clean Boot (so basically a re-boot with my default application/utility mix: UPS stuff, Xit, XWP, etc...none of the other major apps):

1) System => Nonswappable Memory

Code: [Select]
Nonswappable Memory analysis:
Apps & DLLs      = 00024000 ->     144K -> 0.141M
Process overhead = 0025B000 ->    2412K -> 2.355M
DD allocated     = 45615000 -> 1136724K -> 1110.082M
DOS              = 0001E000 ->     120K -> 0.117M
VDisk            = 00000000 ->       0K -> 0.000M
File system      = 00030000 ->     192K -> 0.188M
Kernel code      = 000B3000 ->     716K -> 0.699M
Kernel data      = 01292000 ->   19016K -> 18.570M
Kernel heap      = 003B9000 ->    3812K -> 3.723M

Total            = 46FE0000 -> 1163136K -> 1135.875M

2) System => Free, Idle and Locked Memory

Code: [Select]
Free, Idle, and Locked Memory:
Free                RAM = 7A902000 bytes (2008072K) (1961.008M)
Idle                RAM = 0001A000 bytes (  104K) ( 0.102M).
        (Dirty idle RAM = 00015000 bytes (   84K) ( 0.082M)).
Long  Term Locked   RAM = 0005E000 bytes (  376K) ( 0.367M).
Short Term Locked   RAM = 00000000 bytes (    0K) ( 0.000M).
Short & Long Locked RAM = 00000000 bytes (    0K) ( 0.000M).

3) System => Kernel Information => System Object Summary

Code: [Select]
  Object Allocated Committed   Present   Swapped
 address    memory    memory    memory    memory  Description
          --------  --------  --------  --------
Totals:   619D9000  47B62000  47AD4000  00000000  (in bytes)
           1599332   1174920   1174352         0  (in Kbytes)
          1561.848  1147.383  1146.829     0.000  (in Mbytes)
Number of objects = 1024.

Analysis of 'Free' areas:
There are 398 free blocks which total 1E5E7000 (497564K or 485.902M)
The largest 10 free areas are:
 address      size
8FC10000  1D016000 (475224K or 464.086M)

4) System => General System => General System Information

Code: [Select]
General System Information:

OS/2 version        = 2.45, revision = 0.
Os2krnl build level = 14.203

SYSLEVEL.OS2 information
OS/2 Component ID   = 5639A6101
CSD GA level        = XR04503
CSD Previous level  = XR0C006

SYSLEVEL.FPK information
OS/2 Component ID   = 566933010
CSD Current level   = XR0C006
CSD Previous level  = XR0C006

Theseus4 Version    = 4.001.00
Machine information: Model = 252 (0xFC),
                     Submodel = 1 (0x01),
                     Revision = 0 (0x00),
                     ABIOS = 0 (0x00).
BIOS date = 10/31/12.
RAM available to OS/2 = C7F0B000 bytes (3199.043M).
It appears that all of it is being used as 'paging space' by OS/2.
  (This is the 'proper' usage of the memory.)

Following are the values from DosQuerySysInfo:
 1. QSV_MAX_PATH_LENGTH      = 260.
 3. QSV_MAX_PM_SESSIONS      = 16.
 4. QSV_MAX_VDM_SESSIONS     = 128.
 5. QSV_BOOT_DRIVE           = 7.
 7. QSV_MAX_WAIT             = 1.
 8. QSV_MIN_SLICE            = 32.
 9. QSV_MAX_SLICE            = 32.
10. QSV_PAGE_SIZE            = 4096.
11. QSV_VERSION_MAJOR        = 20.
12. QSV_VERSION_MINOR        = 45.
14. QSV_MS_COUNT             = 263519 (0:04:23).
15. QSV_TIME_LOW             = 1637843077.
16. QSV_TIME_HIGH            = 0.
17. QSV_TOTPHYSMEM           = -940527616 (3275820K -> 3199.043M).
18. QSV_TOTRESMEM            = 1198608384 (1170516K -> 1143.082M).
19. QSV_TOTAVAILMEM          = 2082484224 (2033676K -> 1986.012M).
20. QSV_MAXPRMEM             = 370147328 (361472K -> 353.000M).
21. QSV_MAXSHMEM             = 313262080 (305920K -> 298.750M).
22. QSV_TIMER_INTERVAL       = 310.
23. QSV_MAX_COMP_LENGTH      = 255.
26. QSV_NUMPROCESSORS        = 6.
27. QSV_MAXHPRMEM            = 1409286144 (1376256K -> 1344.000M).
28. QSV_MAXHSHMEM            = 1404301312 (1371388K -> 1339.246M).
29. QSV_MAXPROCESSES         = 128.
System Anchor Segment (SAS) selector = 0070.
Size of PTDA                 = 0768 bytes.
Size of TCB                  = 0304 bytes.
Size of Alias        record  = 0008 bytes.
Size of Arena        record  = 0016 bytes.
Size of Object       record  = 0010 bytes.
Size of Context      record  = 0005 bytes.
Size of Page Frame   record  = 000C bytes.
Size of Virtual Page record  = 000A bytes.
Size of SFT entry            = 00A2 bytes.
har of System Arena Sentinel = 0004.
har of Shared Arena Sentinel = 0006.
har above 512m Shr Arena Sen = 0005.
har of Page Frame table      = 001C.
har of Virtual Page table    = 001F.
System Page Directory        @ FE48A000.
System Page Tables start     @ FE200000.
DLL code Page Tables start   @ FE1F8000.
Start address shared global  @ 1E000000.
Alias Record Table           @ FCB16020.

Let me know if there is anything else you want me to catpure.

Storage / Re: JFS cache sizing, and system "speed-up"
« on: November 25, 2021, 05:54:06 pm »
Alright guys...I've got DATA!!!

Well, data is good, but visuals make it a tad easier to understand.

OK, so take a look at about 4 days of runtime stats. This is the capture of cstats that I mentioned earlier, and what i'm focusing on is the relationship between the metrics.

The thing to note is the nightly spikes...these are my RSYNC runs, which copy my data to NAS and also do a full disk RSYNC of the OS/2 partition to a local disk backup partition.

So I thought it would be interesting to deep-dive some more into these because if anything, these are going to more directly point out the cache behaviour given that a RSYNC copy will require a full disk scan, and therefore one would expect the METADATA to be heavily hit in the JFS cache.

This is shown in the 2nd capture where I basically narrowed things down to just these nightly spikes. For that reason ignore the 'plunge' you see in-between these runs, that's just a placemarker that I used to indicate the manual cut-off between each day.

I have gathered 7 different logs so far since I started experimenting with the larger JFS cache settings, each spanning about 3-4 days. The earlier logs have different JFS cache sizes along with different parameters.

Having said that, I honestly will tell you the following (keep in mind, this is just based on a single 4 day 1G cache cycle):

1) FF is just flat out faster, pages render quicker which is telling me that FF's cache (set to 350M max) persists in the JFS cache for longer
2) the faster application load is present for all other apps that I regularly use: Thunderbird, PMMail, Lotus 1-2-3, OpenOffice, Lucide, PMView, VSE and few others

Now here is the kicker which I did not exect to see: my shared memory over these past 4 days never dropped below 55M. This is VERY different from my prior experience where routinely after 3-4 days of normal system use (that typically includes daily FF re-starts - which i do once I see FF get to about 1G mem consumption as shown in Theseus) I basically exhaust all available shared memory and even shutting down all apps will not bring things back (because of the well known segmentation problem).

Sooo....I obviously need to re-do this cycle multiple times and attempt to better understand the cstats information.

Pages: [1] 2 3 ... 70