Atomic I/O letters column #43

Originally published in Atomic: Maximum Power Computing
Reprinted here March 2005.
Last modified 16-Jan-2015.

 

One switch for everything

I have an idea for a construction project. It's fairly simple really... modding a standard mains powerboard so that is controlled by the presence of power on a computer's USB port. Regular computer users might use this to automatically power up printers, speakers, network equipment, etc, while Atomicans could use it for water pumps, 240 volt cooling fans, etc.

I envisage installing a relay into the powerboard (with 5V coil and 240V contact rating), and connecting it to the computer via a USB cable. Although I could probably work out how to build this project without your help, I'd really like to avoid the possibility of killing myself.

How about it?

Daniel

Answer:
As you say, this can be done with a relay, and if you take adequate care with isolation then it shouldn't be dangerous. You can also buy the thing pre-made for not much - well, if you live in the States you can, anyway (find bigger versions in the "Power Strips" section here).

A more intrinsically safe version of the same idea, though ("intrinsically safe" is a good thing to hear in the description of something you're considering building yourself...), has two sockets on it (from either of which you can hang a powerboard) and powers up the second socket when it detects power being drawn from the first. This keeps mains away from USB, and can be used with all kinds of gadgets, not just computers. It's good for making a central power-up solution for a big home theatre setup, for instance.

It's still eminently possible to crispify yourself while building and testing such a device, of course, but at least a failure while it's running ought not to barbecue your computer.

You'll be happy to learn that this product also already exists, as a packaged kit (basic version here).

 

HSF bling

Looking at all these new and wonderful coolers based on copper, I am wondering what is the next step in air cooling. Then I thought, why not use silver!

Silver is a better thermal conductor than copper, though I know it's expensive. But why not put a thin plate of silver under copper heat sinks to improve the thermal transfer? Just like some hybrid aluminium/copper (Zalman 6000ALCU, Volcano 9...) coolers. Why not do the same with silver?

If a little smear of Arctic Silver can reduce your temperature by a few degrees, what can a whole plate do?

Ken

Answer:
Fine silver actually only conducts heat about 10% better than copper. Putting a plate of the stuff on the bottom of a copper heat sink is, therefore, pretty much pointless; you lose a little thermal conductivity in the joint between the two metals, there'll be some galvanic corrosion issues, silver itself is prone to corrosion, and fine silver is a pretty impractical material - it's terribly soft. That's good news for mating it to the top of a CPU, because it'll squish onto the top of the die and get a good thermal contact, but it makes it hard to mount fine silver onto anything else.

Interestingly, there's an alloy of 72% silver and 28% copper called "CuSil", which is much harder than fine silver (so is sterling silver, which only has a maximum of 7.5% other metals in it, usually copper), and is also supposed to have considerably better thermal conductivity than copper or silver. There's some doubt about whether this is actually true, though.

In any case, there have been a few gimmicky coolers over the years that've had silver plates on the bottom. The most famous is Noisecontrol's old "Silverado", which mated a silver disc with an aluminium heat sink, largely for marketing reasons.

 

Size on disk, size on C64 Datasette...

In Windows XP, what is the difference between an object's "size" and its "size on disk"? A file or folder's Properties always shows two sizes, sometimes the same, sometimes different. Why?

Chris

Answer:
The size is the actual amount of data in the file; the size on disk is the amount of disk space it takes up. The second number is bigger because data on disks is divided up into "clusters", which are the smallest allocation units available. The standard cluster size for NTFS disks is 4096 bytes; you'll notice that all files on such a disk have a "size on disk" spec that's a multiple of 4096 bytes. Save a one byte file to such a disk, and it'll take up 4096 bytes; save a 4097 byte file without disk compression, and it'll take up 8192 bytes.

This extra space is known as "slack" space. A file whose size is an exact multiple of cluster sizes, though, won't waste any space. It also doesn't matter if a file's fragmented.

Slack space used to be a big deal back in the days before FAT32, when disk space was more expensive and the FAT file system used 32 kilobyte clusters for partitions between 1Gb and 2Gb (and couldn't handle partitions larger than 2Gb at all). Nowadays, though, huge disks are cheap and sensible filesystems like NTFS can use small clusters even for big drives, so slack space very seldom becomes a problem.

 

Memory card booting

Is there any way to put WinXP Pro on a flash drive so that the computer will start instantly?

Since it's only read access, will the flash drive last, or run out of its "million" (or whatever) capacity read cycles?

If PDAs can start up quickly, why can't PCs be made to do so?

Sunil

CompactFlash card circuit board
Hot nude CompactFlash action!

Answer:
It's possible, but impractical.

Possible, because it's easy to adapt a CompactFlash card into an IDE (ATA) device; all you need is a passive pin-adapter.

Impractical, because of the following reasons.

An XP Pro install is likely to be more than a gigabyte in size. CompactFlash cards have plunged in price lately; as I write this, 2Gb cards are down to $US140 or so on eBay. This is still around 150 times the price-per-megabyte of a hard drive, though (a ratio that's stayed pretty constant for a while, now).

You can get those some-people-say-they're-dodgy Magicstor 2.2Gb CompactFlash cards for around half the price of well under $US200, but they're Microdrive clones, not flash memory, which of course defeats the purpose.

And, after paying for Flash memory, you wouldn't get instant startup anyway. CompactFlash cards in ATA mode only support PIO 4, which uses more CPU time than any of the DMA modes that all current ATA hard drives support, and can only shift data at a theoretical maximum of 16.7 megabytes per second, which is rather slower than the sustained read speed of various high density consumer drives these days. The card may also have its own overhead that makes the real transfer rate a lot lower.

A memory card has negligible seek time, which can be very handy for some things and certainly doesn't hurt for system startup. But the low transfer rate will kill the advantage.

And, even if that didn't bother you, you'd still need a hard drive to put your swap file on, because NT-series Windows flavours can't run without swap no matter how much physical RAM they've got. You can't put the swap file on the CompactFlash card, because of the limited write cycles the memory supports. You can, if you want to be devious, put the swap file on a RAM disk, but that doesn't actually improve system performance significantly.

PDAs have much smaller operating systems than desktop PCs. The total flash ROM capacity of a current high end Pocket PC is likely to be 128Mb. You'd probably need 10 of them to store just the files for a smallish WinXP install.

PDAs are also made to be able to suspend and resume their operation at a moment's notice, preserving the contents of their dynamic RAM with a trickle of battery power. When you "start up" a PDA you're usually just waking it up into full power mode again, not booting it from scratch. PCs can do the same sort of thing with sleep and standby modes.

 

Still better than drinking it

My friend was having an uninvited party in my home theatre room with his girlfriend. He spilled wine cooler into my Denon AVR-5700 receiver. I was not happy.

After about a week I took the receiver in to an authorized Denon service centre. They've now had it for three months, and have no clue what's wrong with it. They say that all the metal is corroded and even eaten away by the wine cooler in the small area that it dripped in, that I waited too long to bring it in, and that it may not be fixable for a reasonable price.

The repairer's suggesting all sorts of new expensive parts. Is this guy incompetent, or does wine cooler really corrode metal and cause that much damage to circuitry?

Jonathan

Answer:
After a week, yes, it could be that bad.

Wine cooler contains wine and fruit juice (rumours concerning the presence of human or animal urine remain unconfirmed), both of which are acidic. It's dilute enough that you could probably get away with leaving it on an average circuit board for a few hours, but after a week it's quite plausible that the board will be toast. I don't know the actual corrosion capability of an average wine cooler compared with more common electronics-killing liquids (cola, for instance), but all acidic liquids are bad news.

Plain water, however, is not. Lots of gadgets that've been doused with water, even while they were turned on, can be rehabilitated by just taking them apart and drying them out. The standard treatment for a gadget that's been accidentally drenched in Coke or whatever is to wash its parts thoroughly with clean water, optionally followed by squirts of alcohol into any crevices, to displace the water.

But if there's already a patch of rusted-out circuit board, and the board itself can't be cheaply replaced, you're often pretty much screwed.

 

Other letters columns

I/O #1
I/O #2
I/O #3
I/O #4
I/O #5
I/O #6
I/O #7
I/O #8
I/O #9
I/O #10
I/O #11
I/O #12
I/O #13
I/O #14
I/O #15
I/O #16
I/O #17
I/O #18
I/O #19
I/O #20
I/O #21
I/O #22
I/O #23
I/O #24
I/O #25
I/O #26
I/O #27
I/O #28
I/O #29
I/O #30
I/O #31
I/O #32
I/O #33
I/O #34
I/O #35
I/O #36
I/O #37
I/O #38
I/O #39
I/O #40
I/O #41
I/O #42
I/O #43
I/O #44
I/O #45
I/O #46
I/O #47
I/O #48
I/O #49
I/O #50
I/O #51
I/O #52
I/O #53
I/O #54
I/O #55
I/O #56
I/O #57
I/O #58
I/O #59
I/O #60
I/O #61
I/O #62
I/O #63
I/O #64
I/O #65
I/O #66
I/O #67
I/O #68
I/O #69
I/O #70
I/O #71
I/O #72
I/O #73
I/O #74
I/O #75
I/O #76
I/O #77
I/O #78
I/O #79
I/O #80
I/O #81
I/O #82
I/O #83
I/O #84
I/O #85
I/O #86
I/O #87
I/O #88
I/O #89
I/O #90
I/O #91
I/O #92
I/O #93
I/O #94
I/O #95
I/O #96
I/O #97
I/O #98
I/O #99
I/O #100
I/O #101
I/O #102
I/O #103
I/O #104
I/O #105
I/O #106
I/O #107
I/O #108
I/O #109
I/O #109
I/O #110
I/O #111
I/O #112
I/O #113
I/O #114
I/O #115
I/O #116
I/O #117
I/O #118
I/O #119
I/O #120
I/O #121
I/O #122
I/O #123
I/O #124
I/O #125
I/O #126
I/O #127
I/O #128
I/O #129
I/O #130
I/O #131
I/O #132
I/O #133
I/O #134
I/O #135
I/O #136
I/O #137
I/O #138
I/O #139
I/O #140
I/O #141
I/O #142
I/O #143
I/O #144
I/O #145
I/O #146
I/O #147
I/O #148
I/O #149
I/O #150
I/O #151
I/O #152
I/O #153
I/O #154
I/O #155
I/O #156
I/O #157
I/O #158
I/O #159
I/O #160
I/O #161
I/O #162
I/O #163
I/O #164
Dan's Data letters #1
Dan's Data letters #2
Dan's Data letters #3
Dan's Data letters #4
Dan's Data letters #5
Dan's Data letters #6
Dan's Data letters #7
Dan's Data letters #8
Dan's Data letters #9
Dan's Data letters #10
Dan's Data letters #11
Dan's Data letters #12
Dan's Data letters #13
Dan's Data letters #14
Dan's Data letters #15
Dan's Data letters #16
Dan's Data letters #17
Dan's Data letters #18
Dan's Data letters #19
Dan's Data letters #20
Dan's Data letters #21
Dan's Data letters #22
Dan's Data letters #23
Dan's Data letters #24
Dan's Data letters #25
Dan's Data letters #26
Dan's Data letters #27
Dan's Data letters #28
Dan's Data letters #29
Dan's Data letters #30
Dan's Data letters #31
Dan's Data letters #32
Dan's Data letters #33
Dan's Data letters #34
Dan's Data letters #35
Dan's Data letters #36
Dan's Data letters #37
Dan's Data letters #38
Dan's Data letters #39
Dan's Data letters #40
Dan's Data letters #41
Dan's Data letters #42
Dan's Data letters #43
Dan's Data letters #44
Dan's Data letters #45
Dan's Data letters #46
Dan's Data letters #47
Dan's Data letters #48
Dan's Data letters #49
Dan's Data letters #50
Dan's Data letters #51
Dan's Data letters #52
Dan's Data letters #53
Dan's Data letters #54
Dan's Data letters #55
Dan's Data letters #56
Dan's Data letters #57
Dan's Data letters #58
Dan's Data letters #59
Dan's Data letters #60
Dan's Data letters #61
Dan's Data letters #62
Dan's Data letters #63
Dan's Data letters #64
Dan's Data letters #65
Dan's Data letters #66
Dan's Data letters #67
Dan's Data letters #68
Dan's Data letters #69
Dan's Data letters #70
Dan's Data letters #71
Dan's Data letters #72
Dan's Data letters #73
Dan's Data letters #74
Dan's Data letters #75
Dan's Data letters #76
Dan's Data letters #77
Dan's Data letters #78
Dan's Data letters #79
Dan's Data letters #80
Dan's Data letters #81
Dan's Data letters #82
Dan's Data letters #83
Dan's Data letters #84
Dan's Data letters #85
Dan's Data letters #86
Dan's Data letters #87
Dan's Data letters #88
Dan's Data letters #89
Dan's Data letters #90
Dan's Data letters #91
Dan's Data letters #92
Dan's Data letters #93
Dan's Data letters #94
Dan's Data letters #95
Dan's Data letters #96
Dan's Data letters #97
Dan's Data letters #98
Dan's Data letters #99
Dan's Data letters #100
Dan's Data letters #101
Dan's Data letters #102
Dan's Data letters #103
Dan's Data letters #104
Dan's Data letters #105
Dan's Data letters #106
Dan's Data letters #107
Dan's Data letters #108
Dan's Data letters #109
Dan's Data letters #110
Dan's Data letters #111
Dan's Data letters #112
Dan's Data letters #113
Dan's Data letters #114
Dan's Data letters #115
Dan's Data letters #116
Dan's Data letters #117
Dan's Data letters #118
Dan's Data letters #119
Dan's Data letters #120
Dan's Data letters #121
Dan's Data letters #122
Dan's Data letters #123
Dan's Data letters #124
Dan's Data letters #125
Dan's Data letters #126
Dan's Data letters #127
Dan's Data letters #128
Dan's Data letters #129
Dan's Data letters #130
Dan's Data letters #131
Dan's Data letters #132
Dan's Data letters #133
Dan's Data letters #134
Dan's Data letters #135
Dan's Data letters #136
Dan's Data letters #137
Dan's Data letters #138
Dan's Data letters #139
Dan's Data letters #140
Dan's Data letters #141
Dan's Data letters #142
Dan's Data letters #143
Dan's Data letters #144
Dan's Data letters #145
Dan's Data letters #146
Dan's Data letters #147
Dan's Data letters #148
Dan's Data letters #149
Dan's Data letters #150
Dan's Data letters #151
Dan's Data letters #152
Dan's Data letters #153
Dan's Data letters #154
Dan's Data letters #155
Dan's Data letters #156
Dan's Data letters #157
Dan's Data letters #158
Dan's Data letters #159
Dan's Data letters #160
Dan's Data letters #161
Dan's Data letters #162
Dan's Data letters #163
Dan's Data letters #164
Dan's Data letters #165
Dan's Data letters #166
Dan's Data letters #167
Dan's Data letters #168
Dan's Data letters #169
Dan's Data letters #170
Dan's Data letters #171
Dan's Data letters #172
Dan's Data letters #173
Dan's Data letters #174
Dan's Data letters #175
Dan's Data letters #176
Dan's Data letters #177
Dan's Data letters #178
Dan's Data letters #179
Dan's Data letters #180
Dan's Data letters #181
Dan's Data letters #182
Dan's Data letters #183
Dan's Data letters #184
Dan's Data letters #185
Dan's Data letters #186
Dan's Data letters #187
Dan's Data letters #188
Dan's Data letters #189
Dan's Data letters #190
Dan's Data letters #191
Dan's Data letters #192
Dan's Data letters #193
Dan's Data letters #194
Dan's Data letters #195
Dan's Data letters #196
Dan's Data letters #197
Dan's Data letters #198
Dan's Data letters #199
Dan's Data letters #200
Dan's Data letters #201
Dan's Data letters #202
Dan's Data letters #203
Dan's Data letters #204
Dan's Data letters #205
Dan's Data letters #206
Dan's Data letters #207
Dan's Data letters #208
Dan's Data letters #209
Dan's Data letters #210



Give Dan some money!
(and no-one gets hurt)