Author Topic: Windows inter-app messaging and 32 bit apps under win7-64  (Read 9265 times)

0 Members and 1 Guest are viewing this topic.

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4384
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #25 on: October 02, 2024, 02:51:40 pm »
I don't think it's specific to windows xp, but any budget ssd will be shred by a host that does not allow it to free blocks.
They are heavily optimized for speed, not for endurance. This is simply an scenario they're not developed for.

You can buy enterprise SLC SSDs that are intended for this, they will last a lot longer, but cost a lot more.

Even with windows 10 the only failures we see in embedded pc's is the little msata disks failing. They're just worn out.
 

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #26 on: October 02, 2024, 02:59:08 pm »
.... but why does XP trash SSDs after a year? ....
Buy a refurbished hdd cheap and don't bother.
https://aliexpress.com/item/1005002617399974.html
« Last Edit: October 02, 2024, 03:22:20 pm by Postal2 »
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3696
  • Country: us
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #27 on: October 02, 2024, 03:28:57 pm »
One can run XP for ever, but the hard disk will eventually fail and one cannot use an SSD with XP because XP always destroys an SSD after about a year of 24/7/365 operation. I don't know why but fairly obviously it keeps repeatedly writing to some block, usually where NTLDR is sitting, while defeating any wear levelling in the SSD - one can dig around this by searching on say the win7+ TRIM command which would obviously not be needed if wear levelling was totally autonomous inside the SSD.

1. This doesn't match my experience at all.  I checked my notes, and e.g. on one PC I ran Windows XP on an undistinguished Kingston SH103S3 120GB SSD from June 2013 to October 2017, about 12 hours per day.  I never saw an SSD error, and that SSD still works fine.

2. NTLDR is never written after install.

3. TRIM has nothing to do with wear leveling or drive endurance.  It's a performance optimization that lets the SSD pre-erase blocks.

4. On the systems that failed, did you use an SSD-aware utility to create SSD-aligned partitions?  Non-aligned partitions cause write amplification, and the Win XP installer didn't know about alignment.

5. On the systems that failed, did you run the defragmenter?  That would be bad.
« Last Edit: October 02, 2024, 03:33:59 pm by edavid »
 
The following users thanked this post: thm_w

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #28 on: October 02, 2024, 03:36:23 pm »
1. Interesting
2. I am sure that's true but the failure was "NTLDR not found" so the start of the SSD was somehow corrupted. Could be the FAT32 directory, which does get written on any update
3. I get that now - thanks
4. No
5. Not sure; have now found the registry changes for stopping that
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3696
  • Country: us
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #29 on: October 02, 2024, 03:40:12 pm »
Why were you using FAT32 instead of NTFS?
 

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #30 on: October 02, 2024, 03:41:36 pm »
Probably was.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7760
  • Country: pl
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #31 on: October 02, 2024, 04:09:26 pm »
Actually, did you check SMART to verify it was a hardware issue and not plain old data corruption?
 

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #32 on: October 02, 2024, 04:15:56 pm »
No idea what that is :)
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7760
  • Country: pl
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #33 on: October 02, 2024, 04:38:39 pm »
It's the first thing you do when you suspect hardware problems with a disk.

Get some HDTune, CrystalDiskInfo or whatever people use on Windows, run it on a machine with the suspect SSD connected, find the option to get "health data", "diagnostic data" or whatever the software calls it, look at the results. If all "normalized" values are at or near 100 and raw values of counters involving uncorrectable errors are zero, the disk hasn't had bad sectors. SSDs should also report "Media Wearout", so take a look at that.
 

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #34 on: October 02, 2024, 05:00:30 pm »
I have such a utility (Samsung Magician) for my PC



But you can't run it if the machine does not boot :)
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3696
  • Country: us
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #35 on: October 02, 2024, 05:06:45 pm »
But you can't run it if the machine does not boot :)

Then you connect the drive to a different computer.

Or boot one of the many recovery CDs that include e.g. GSmartControl: https://gparted.org/livecd.php
 

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #36 on: October 02, 2024, 05:17:10 pm »
Interesting and useful digression.

I am waiting for a SLC SSD and 8GB RAM to arrive, and hopefully the 64 bit control app. If the new app does not solve it, I will just restore an XP image backup (of a working machine with a HD) to the SSD machine. Maybe I should create the partition first, on a 4k boundary... what is the easiest way to do that, short of using a win7 boot DVD?
« Last Edit: October 02, 2024, 05:22:25 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3696
  • Country: us
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #37 on: October 02, 2024, 05:29:45 pm »
I usually use the free version of AOMEI Partition Assistant:  https://www.aomeitech.com/pa/standard.html

The GParted CD I just linked will also do it, but is less user friendly.

 
The following users thanked this post: peter-h

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #38 on: October 02, 2024, 05:59:30 pm »
...I am waiting for a SLC SSD ...
Isn't the initial area of the SSD, where your ntldr is, SLC? And what difference will it make? I haven't analyzed SSDs, but for EMMC used as a disk, the initial area is done SLC, and SSD utilities suggest doing the same by default.
... I usually use the free version of AOMEI Partition Assistant: ...
What does this stupid utility have to do with partitioning SSDs into SLC/MLC/TLC zones?
« Last Edit: October 02, 2024, 06:07:27 pm by Postal2 »
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3696
  • Country: us
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #39 on: October 02, 2024, 06:04:20 pm »
The SLC thing is a red herring.  There is no evidence that the Win XP issue was SSD endurance.
 
The following users thanked this post: thm_w

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #40 on: October 02, 2024, 06:21:15 pm »
The SLC thing is a red herring. ...
I agree. And peter-h got caught on this hook. The thing is that if the chips are rejected and can't handle MLC - they are sold to various idiots. At the same time, if the chips that can handle MLC are switched to SLC - the reliability will really increase.
 

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #41 on: October 02, 2024, 07:32:23 pm »
HDtune (free version) and Crystaldisk info do nothing on winXP. CrystalDiskInfo won't install (not a valid win32 app, it says - but I am running XP 32).

Never mind.
« Last Edit: October 02, 2024, 07:57:39 pm by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 5386
  • Country: Earth
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #42 on: October 02, 2024, 10:21:36 pm »
There are several approaches to inter-process communication (IPC) in Windows:
1) Shared memory is the fastest method for IPC on Windows, providing high performance by allowing direct access to shared memory regions.
2) Named pipes offer a more versatile approach, generally faster than sockets, but are limited to communication between processes on the same machine.
3) Sockets are the most platform-independent option, enabling communication across different platforms, including Linux.
4) Window messages allow lightweight communication between GUI applications within the Windows environment.
« Last Edit: October 02, 2024, 10:24:11 pm by radiolistener »
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 9069
  • Country: ca
  • Non-expert
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4384
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #44 on: October 03, 2024, 05:50:38 am »
You can get a license for HDSentinel and have it email reports about the disks. You can then track the state of any disk over time.
It also keeps a log, but if the disk it's installed to fails you can't read it.  :P
 

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #45 on: October 03, 2024, 05:53:11 am »
.... (current one has 4GB, Atom 1.8GHz) ....
I am waiting for a SLC SSD and 8GB RAM to arrive, ...
Very strange. My Atom boards support 2 GB of RAM, I know that you can break your brain and expand it to 4. But where to stick 8 GB?
 

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5281
  • Country: gb
  • Doing electronics since the 1960s...
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #46 on: October 03, 2024, 06:47:07 am »
It takes two modules, and you can get 4GB ones, £15 each. PC3-10600. Whether the MB will support them, I will find out. I cannot see its P/N without bending some stiff flat cable...

Quote
Window messages allow lightweight communication between GUI applications within the Windows environment.

That is the only one available if you cannot recompile one of the apps.

Quote
XP works fine with SSDs

It does... but see discussion above.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #47 on: October 03, 2024, 07:05:14 am »
... I will find out. ...
I will simplify your impossible task.
 
The following users thanked this post: peter-h

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 29467
  • Country: nl
    • NCT Developments
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #48 on: October 03, 2024, 09:59:08 pm »
...But somehow this falls apart for XP, and nobody knows why, other than it being to do with the absence of TRIM.
I've heard all this talk about TRIM. It doesn't affect reliability, only speed. The complaints about Windows XP were about NTFS, which writes a lot of unnecessary stuff.
AFAIK there is more to TRIM. It releases unused blocks on the SSD so these can be used for more even wear levelling. Otherwise the SSD is limited to using the few extra blocks it has for wear levelling which will wear very fast. With XP I'd disable the virtual memory as well to avoid unnecessary hard drive access.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 9069
  • Country: ca
  • Non-expert
Re: Windows inter-app messaging and 32 bit apps under win7-64
« Reply #49 on: October 03, 2024, 10:32:16 pm »
AFAIK there is more to TRIM. It releases unused blocks on the SSD so these can be used for more even wear levelling. Otherwise the SSD is limited to using the few extra blocks it has for wear levelling which will wear very fast. With XP I'd disable the virtual memory as well to avoid unnecessary hard drive access.

All of this was explained in the link above.

- Align partitions
- Disable swap file - optional
- Disable defrag - optional
- Disable last access timestamp - optional

Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf