I have run many tests on my new Ryzen 5 3600 with 32GB RAM doing music transcoding from FLAC to MP3 using LAME.
I was interested in finding out just how slow my old SATA spinning rust disks are, so I thought I'd try comparing transcoding time from disk to a different disk (one of two kinds) and from ramdisk to ramdisk, ramdisk to disk and disk to ramdisk.
Creating the ramdisk is very easy. I made one with 16GB or RAM:
mount -t tmpfs -o size=16G ram0 /mnt/ramdisk/
And then I copied my input data onto the ramdisk (from the parent directory containing the input data dirs, and note the trailing / on the rsync source directory):
for i in `cat ramdisk_convert_list.txt` ; do mkdir -p /mnt/ramdisk/ripping/${i} ; rsync -av ${i}/ /mnt/ramdisk/ripping/${i} ; done
The top level script runs the entire encoding test each time for a given number of CPUs or threads ie it iterates from 1 to 12 CPUS/threads.
I used a subset of my input data, 18 albums (7GB of input data, 2GB of output), one of which is a double CD. After running the tests I realised a few problems.
The double album was somewhere down the list of inputs, so depending on the number of threads being used it was often the last to finish transcoding, by a long time, so it was masking any performance improvements from transcoding albums in parallel. To fix that, I made a list of the albums sorted by data size as follows:
for i in * ; do du -s ${i} ; done | sort -rg > sorted_list_of_albums.txt
I also saw a bug in my top level script where it wasn't waiting for all its subtasks (parallel encoding processes) to finish at the end, so the time command was often measuring premature completion, and the next job in the loop was starting while other threads were still running. Sometimes there were two transcoding jobs running on the same album at once! To fix this problem it was as simple as putting a loop at the end of the script counting the number of threads and running wait -n for each iteration to ensure that all the sub-tasks had finished. wait -n retuns if there are no sub-processes running, so if a sub-process finishes before the loop starts, there's no problem.
COUNT=${NCPUS}
while [ ${COUNT} -gt 0 ]
do
wait -n
COUNT=$(( ${COUNT} - 1 ))
done
The other thing I did was to run LAME in quiet mode (--quiet). This disables the animated output histogram while encoding, and makes it a bit faster.
Results? Well, I won't bore you with the details, and I haven't drawn any graphs yet, but 1 thread took
Number of threads: 1
real 14m20.573s
user 14m12.824s
sys 0m7.531s
2.0G /mnt/ramdisk/compressed/lossy
And 6 threads
Number of threads: 6
real 2m47.928s
user 15m2.168s
sys 0m7.601s
2.0G /mnt/ramdisk/compressed/lossy
Surprisingly, with 7 threads
Number of threads: 7
real 2m28.698s
user 16m8.499s
sys 0m7.922s
2.0G /mnt/ramdisk/compressed/lossy
But then it started to plateau. In fact some were a few seconds slower. 12 Threads gave
Number of threads: 12
real 2m37.054s
user 19m3.468s
sys 0m8.662s
2.0G /mnt/ramdisk/compressed/lossy
Next I will try the RAM to disk and disk to disk ones again.
Update: here's the data for the ramdisk run in CSV format.
The next thing I need to build is a router. I have my old Phenom II X6 acting as the firewall between the rest of the house and my own LAN. I have to start it up whenever I want to get to the outside world, and I'd rather have something small, quiet and energy efficient.
I was looking at fanless mini-PCs. There are quite a few to choose from these days, and they seem quite powerful. I don't want an ARM system, because I'd like to be able to run x86 binaries natively on it. Many years ago I worked for a company making network storage appliances (32-bit x86). Our OS was based on RedHat and was stored in a compressed file on a flash disk. When it booted, the root filesystem was decompressed into RAM and run as a RAM disk. I put the whole thing together, and I'd like to do something similar with my router. What I'm saying is it doesn't need a huge amount of disk space, but plenty RAM would be good. In fact, it could even run off an SD card or similar. It would need at least two ethernet ports. WiFi wouldn't be essential since I have a newish WAP which works quite well.
The other thing I need to do is to retire my printer server. It needs to be virtualised. I have a Xerox colour laser printer over a decade old. The print quality is superb and I got it very cheap. The only problem is it's a Winprinter. Fortunately, it's a Xerox-re-engineered FujiXerox engine, and there was a binary Linux driver for it (32-bit, x86) which I have been running on my 2003 vintage Athlon XP 2000+. It's noisy and takes up a lot of space. So I thought I could try to make a virtual machine to run the software using maybe quemu or VirtualBox or one of those. Then I could run the VM on my new router.
Buying a new printer would be an admission of defeat :-)
Does anyone have any recommendations for such a machine?
Man who called coronavirus ‘fake crisis’ gets infected, wife in critical condition
Florida man who called coronavirus ‘fake crisis’ gets infected, warns others
He didn’t wear a mask and called the coronavirus ‘a fake crisis.’ Then he was infected
Man who called coronavirus ‘fake crisis’ gets infected, issues warning
Quoting first article:
A Florida man who worked as a rideshare driver and refused to wear a mask out of skepticism of the coronavirus pandemic has been hospitalized, along with his wife, who is now facing a serious threat from the disease.
Brian Hitchens said was a self-proclaimed COVID-19 skeptic about a month ago, WPTV reported.
“I thought it was maybe the government trying something, and it was kind of like they threw it out there to kinda distract us,” said Hitchens.
On Facebook, Hitchens said he believed the pandemic was “blown out of proportion” and said he was putting his faith in God.
“I’d get up in the morning and pray and trust in God for his protection, and I’d just leave it at that. There were all these masks and gloves. I thought it looks like a hysteria,” Hitchens explained.
Now, Hitchens and his wife are in the hospital after contracting the virus.
“I don’t want to see anyone go through what I went through,” Hitchens said. “This wasn’t some scare tactic that anybody was using. It wasn’t some made-up thing. This was a real virus you gotta take seriously.”
Hitchens is showing signs of improvement, but says his wife’s condition deteriorated and she had to be sedated and placed on a ventilator 3 weeks ago.
“After 3 weeks I have come to accept that my wife may pass away and the peace I have about it is that I know without a shadow of a doubt that she will be going home to be with the Lord but I also do believe in miracles and I’m holding on to the chance that she may get healed but if not I am thankful for her I know we’ve been married for 8 years,” he said.
“Looking back I should have wore a mask in the beginning but I didn’t and perhaps I’m paying the price for it now but I know that if it was me that gave it to my wife I know that she forgives me and I know that God forgives me,” he said.
<no-sarcasm>
My first almost instinctive reaction, upon reading the headline was the Nelson "haha". But when reading the first paragraphs, this story is nothing but sad.
I would say to the guy, "God gave you a brain, use it."
Maybe this is a lesson learned too late and the hard way.
But I think the real blame goes deeper than just laughing at or blaming this working guy. I doubt he hatched his misconceptions on his own. He probably heard them in various right wing echo chambers he visits. This is where the real blame lies. (pun intended)
How is it in the 21st century we have half the population listening to echo chambers that outright deny science, have a disdain for education and intelligence, pick the worst human beings to be their representative (not the best and brightest), and blame the other half population for their chosen representative? How is it we have echo chambers that openly and brazenly spew outright lies? Alternate facts? Calling the free press the enemy of the people, without seeing the irony of 1984. This is where I think the true problem lies. I'm not absolving this guy of all blame, but I think he was convincingly led into dangerous (maybe fatal) misinformation, by someone who knew that they were lying. Someone made up these lies out of thin air. They didn't just get on the air by themselves.
</no-sarcasm>
Due to popular demand.
On your grocer's shelves...
Clorox Bleach now in Grape and Orange flavors! Traditional unflavored Clorox now available in convenient pre-loaded syringes.
I sometimes create burner accounts when I want to participate in some activity anonymously. For this purpose, I usually sign up for a new Google, Yahoo, or MS Outlook/Hotmail account.
They're making it more difficult to stay anonymous. And I understand that they don't like having their services used for sending out spam. I don't like that either. But the measures they are taking do more than cut down the spam. They now insist that you "verify" your account by giving them a phone number that can receive a text. They resort to sneaky lies and false claims about what is really going on, maybe saying vaguely that it's "for your protection" without going into any details about why and how, or maybe claiming it is to reduce spam.
This time it was MS Outlook/Hotmail. I log into a burner account, and their system announces that my account has been locked. I must give them a phone number so they can verify me. That's a lie. They want a phone number they can connect to what is likely a real person. What if I have only a landline, and cannot receive texts? What if I don't want to give out my cell phone number? Also, I especially dislike how expensive texting is. The price is too obviously not based upon the amount of data transmitted. Or, I've already used my number for another account, and they won't let numbers be used for multiple accounts? On that last one, how would they know, unless they are indeed tracking that bit of data? I could also go buy a burner phone, but that's far too much trouble and expense for a lousy burner email account.
There are some online services that can receive SMS texts for you, using their own phone numbers. I tried it. As I expected, that did not work. Outlook claims that they cannot sent a text to that number. Bull! They mean that they won't send a text to such a number, because they have a blacklist, and those numbers are on it.
* * *
I also ran into an old trick a day ago, the old "Give us your credit card number to start your 'Free' trial. You can cancel anytime before the trial period ends and not be charged!" The site in question is a genealogy site, myheritage.com. As expected, reviews of the site talk of "mistakes" being made with charges nevertheless being charged after cancellation.
I thought of trying a fake credit card number again. (I tried it several years ago for something else, and it didn't work.) You can't just make up any old 16 digit number. Like with Windows license keys, only a small subset of the full range of values is valid. However, there are credit card generators. Didn't work of course. The site checked with the credit card issuer, which rejected the fake. But that does tell me that they do check the number right away, and do not wait until the first payment is due.
I've also had to improve fake street addresses. Used to make up something completely fake. Now I pick a real address, of a church or used car dealership or some such, in a city I've never visited.
A computer with 12 penguins.
After about eight years, I have built a new PC. The venerable AMD Phenom II X6 1045T is still going strong with 6TB of disk and 8GB of RAM (and an nVidia GTX650) but it was time for something new.
I bought an ASUS X570 Plus motherboard ("Tuf Gaming"), AMD Ryzen 5 3600 (6 cores/12 threads) and 32GB of unbuffered ECC Crucial (Micron) RAM and built it yesterday. It's got an nVidia GeForce 1650 graphics card that I bough a couple of weeks ago and was in the Phenom II. I bought a not very expensive Fractal Design case and a 700W power supply.
My budget didn't extend to any new (or indeed newfangled SSD) disks. I had two 2.0TB Western Digital green drives lying about and a 650GB Western Digital blue drive that I extracted from the cast-off intel Core 2 Quad that I acquired.
On Friday I downloaded the latest Slackware-current and everything's up and running. The physical build, including extracting the old hard disks, took a couple of hours. The hardest part was figuring out how to persuade the UEFI BIOS to boot off of the SATA drives (hint: they're "legacy").
I installed Slackware from a USB memory stick. The only problem I had was that I forgot to format the UEFI boot partition when I partitioned the disk, and so it didn't install the ELILO bootloader stuff in the right place. I had to mount the partition and copy it manually. The next problem I had was getting it to see the ELILO stuff. Apparently, this firmware (unlike my Acer laptop) can't attempt to boot from arbitrary file names. The boot stuff has to be in the EFI/boot subdirectory and the bootloader file has to have the standard name: bootx64.efi.
When you do a Slackware installation, one of the boot options is Memtest86+ (rather than the Slackware installer). However, when you do a UEFI installation from USB stick, that option apparently isn't there. It's definitely there on the DVD installation. Fortunately I have a USB DVD writer and was able to boot off that to run a memory test. I didn't do the complete suite of tests (32GB takes a long time) but after about 10 tests there were no errors.
Over the years I have ripped all my music CDs to FLAC so that I can transcode them to Ogg/Vorbis listen to on my Android phone. Unfortunately my car only knows MP3 format, and I had 128kbps encodings of most albums and they sound terrible. A while ago, I re-encoded everything as top-quality MP3s. They sound a bit better but still not as good as Ogg/Vorbis. It took about 2.5 hours to re-encode them using LAME on all six cores of the Phenom II. Today I will try using the 12 virtual cores on the Ryzen and see how long it takes.
Note that the Phenom II has faster disks in it (Western Digital Blue, 3TB) vs. the Ryzen (Green, 2TB). I noticed about a 15% speed improvement when I went from green to blue a few years back in the Phenom II. However, I was encoding to and from the same drive, Today I will read from one drive and write to the other. I might try it on both machines.
If it isn't faster, I will cry.
Update: Performance comparisons.
I ran my multi-threaded FLAC to MP3 transcoding scripts on three machines to transcode 135 albums (from CD). One or two were double or triple albums. I have pairs of hard disk in each system, and I used one for the reading and one for the writing of the compressed data.
AMD Ryzen 5 3600 6 cores/12 threads, 3.6GHz nominal
32GB Unbuffered ECC RAM
bash-5.0# time recode_list mega_convert_list.txt
Number of threads: 12
real 14m47.234s
user 107m3.341s
sys 1m33.449s
Phenom II X6 1045T 6 cores 2.7GHz
8GB DDR2 800, Unbuffered ECC
bash-5.0# time recode_list mega_convert_list.txt
Number of threads: 6
real 50m27.843s
user 279m55.120s
sys 3m52.876s
Intel Core 2 Quad Q8300 4 cores 2.5GHz
8GB DDR2 800
bash-5.0# time recode_list mega_convert_list.txt
Number of threads: 4
real 71m50.033s
user 256m19.096s
sys 5m42.453s
Intelsat, launcher of 1st commercial communications satellite, files for bankruptcy… it’s a friend we didn’t know we had
By Andrew Dickens, a London-based freelance writer
Born in the Cold War, powered by rivalry and unhindered by free-market restrictions, Intelsat linked the planet with its satellites – but hardly anyone knew about it. Now, it struggles to stay afloat.
Anyone who remembers television in the late 20th century will remember the thrill of watching international broadcasts. The grainy pictures of faraway and foreign places, with their strange road signs, adverts and people. The sound delayed and crackled like a long-distance phone call.Now we live in an age where a crystal-clear conversation with multiple people on multiple continents using a device lighter than a deck of cards is as commonplace as sliced bread, it’s easy to forget how powerful that early magic felt.
It’s even easier to forget the organization that launched the world’s first commercial communications satellite (Intelsat 1) in 1965, bringing many of us those miraculous early broadcasts that changed history and propelled us to the connected world, because we probably never knew its name. Now its prospects are less certain.
Intelsat filed for Chapter 11 bankruptcy on Wednesday. The move is a part of restructuring process to help the company cut millions of dollars in debt and free resources for fresh projects.
This vast entity was born from the Cold War, having been instigated by John F Kennedy in 1961 as part of the space and technology races with the USSR. It was a satellite network that aimed to be a more expensive but also more reliable rival to the Soviet Molniya (Lightning) satellites.
It wasn’t a purely American venture, either. This was a different US to the current one. It was capitalist, no doubt, but a less voracious strain that didn’t view public spending as ‘socialism’ –especially when it came to besting the Russians, who had their own network with other Eastern Bloc countries.
So, the US government pumped money into satellites that weren’t available to the highest bidders, but rather to its strategic allies. Intelsat was an intergovernmental consortium, beginning with seven partners in 1964. Founding members included the UK, Canada and Spain. Within ten years it had had over 80 signatories.
Although he didn’t live to see the formal creation of Intelsat, what Kennedy started thrived for decades, bringing live pictures of major news and sport events from around the world to the world. It made the planet smaller, and made us all more a little more cosmopolitan.
In filing for bankruptcy, the company cited the Covid-19 pandemic, but that’s not what did the damage. Intelsat was hit by a ‘triple threat.’ First, the ruthless neoliberal economics that came to the fore in the 1980s and abhorred the unprofitable.
This was followed by the end of the Cold War (or that version, at least). Not that the US didn’t still have enemies, but the Big One had gone, which made it hard to justify the public money that went into it. So, in 2001, it was privatized, with shares being distributed among partners according to their use of the service. Four years later, it was sold to four private equity firms.
https://www.rt.com/news/488856-intelsat-satellite-bankruptcy-friend/
Intelsat will mean little if anything to the younger generations. For some of us, it's an opportunity for some nostalgia.
27 minute video on the the first launch - https://www.youtube.com/watch?v=uKH-GijnAGk
A pop song on the subject - best listened to sitting inside a 1955 DeSoto - https://www.youtube.com/watch?v=ryrEPzsx1gQ
A few weeks ago it was really nice weather, so I sat outside on the porch with the door open and the stereo cranked. It wasn’t loud enough. I missed the old Kenwood 200 watt stereo I used to have decades ago that could wake up folks in the next block. It died, but I’m still using the three way JBL speakers.
It wasn’t nearly loud enough, so I went inside, unplugged the little Dell I bought last year (I have a Bluetooth mouse and keyboard and use the TV as a monitor, only not when I’m doing commerce) and went to Amazon for a new two hundred watt amplifier.
I had been at war with Sony since they vandalized my computer with XCP when my then teenaged daughter played a CD she had bought from the record store she worked at, until I bought a Sony TV by accident. Then bought a PS4 on purpose, and when I saw that the TV remote worked the Playstation, I was happy to find a Sony receiver advertised at 100 watts per channel RMS, like the old Kenwood.
I unboxed it, plugged it up, read the owner’s manual, and turned it on. It came with a 75 ohm antenna of sorts, with a type of plug I’d never seen before. I expected the jack to be screw on, like a television, since FM radio’s spectrum is right between TV channels six and seven.
I have the little Dell laptop plugged into the TV, and put it on the KSHE stream. I was impressed with the sound, very crisp and clean, as good as the old Kenwood. I also liked that it had a remote control, the first stereo I ever owned that had one, even though they’ve been around since at least the eighties.
You can pretune up to thirty stations, with the first three having dedicated recall buttons, like in a car radio.
And it has Bluetooth, which I thought would be a good replacement for the old HP laptop’s faulty sound output jack. Unfortunately, the old laptop has an old Bluetooth chip and drivers which are incompatible with the Bluetooth on the new receiver. I’ve been running that old HP all weekend and yesterday, recording KSHE’s “no repeat weekend” and restoring all my Star Trek movies and TV shows from backup. I shut it off this morning and am letting it cool to see if I can get Linux to run from the DVD, but I’m not hopeful I can get Bluetooth running on Linux any more than I could in Windows. That is, if the DVD itself isn’t bad.
It was a nice day, so I thought I’d sit on the front porch and listen to KSHE.
Sony is a collection of lying bastards. Two hundred watts RMS, my ass. The decibel meter on m y phone tells me it tops out at eighty decibels. It’s not much louder than the old stereo; not loud at all on the porch, in fact traffic is louder. The old Kenwood that really did have 200 watts RMS had people down the street calling the cops on me. Nobody will be calling the cops on me for this one, because there’s no way anybody but me will hear it.
I didn’t have an antenna with the stereo it replaced, which had screw-in 300 ohm antenna leads, and the radio was even a bigger disappointment than the wattage. I can’t pick up WQNA at all with it, but the shitty little car stereo picks it up fine. WCVS and a few other stations have static. WYMG doesn’t have any static, but it doesn’t have the sound quality I get from plugging the Dell into it.
I cannot recommend this to anyone. The amplifier has great sound quality but is pitifully under-powered. The receiver’s quality is practically nonexistent. If I had bought it locally rather than online I’d have returned it.