News for hackers. Stuff that matters.
Re:Technician keeps computer made in 1959 still humming along by cosmodisk on Tuesday July 30, 2019 @03:34PM (#20568323)
While not even close to what this guy does,I do run my IBM thinkpad every now and then,which is probably about 20 years old.I reinstalled Linux recently and it just works..The keyboard is still lightyears better than most of that crap one could find in most of today's laptops.. What the guy does with the computer is amazing and I'm really glad the management allow him to carry on with it.
Re:Technician keeps computer made in 1959 still humming along by TrackerFF on Tuesday July 30, 2019 @04:31PM (#20568810)
My first employer still has a Win 95 machine running for some very specific EE CAD software, for no other reason that it still does the job, the company that made it closed shop years ago, and he's very productive with it.

I suspect it's gonna be there 'til the day he closes shop, or he runs out of parts for the computer.

Re:Technician keeps computer made in 1959 still humming along by cosmodisk on Tuesday July 30, 2019 @04:51PM (#20569001)
I did use some very interesting software over the years and I can absolutely relate to this. For instance,I used to run Alias Studio,which wasn't even part of Autodesk at the time,which is obviously a bit obsolete by now but I'm pretty sure that there are still some shops out there running it on old machines,as the software is really powerful,not to mention the licensing costs back in the day( I think it used to be $100K per desktop)...
Re:Technician keeps computer made in 1959 still humming along by mehrdadn on Tuesday July 30, 2019 @04:41PM (#20568907)
Would a VM not work for this?
Re:Technician keeps computer made in 1959 still humming along by enobrev on Tuesday July 30, 2019 @04:46PM (#20568956)
I fire up VMs for windows-only [mostly graphical] applications from time to time and the experience is never very good. No matter how beefy my host system is, the experience is awful and I end up giving up out of frustration. I have an old used Toshiba laptop with Windows that I fire up on those rare occasions now.
Re:Technician keeps computer made in 1959 still humming along by jchw on Tuesday July 30, 2019 @11:46PM (#20571566)
GPU passthrough can give you excellent performance, at the cost of some convenience (depending on how your setup is.)

Somewhat recently, Intel released GVT-g mode, which effectively allows you to carve up an Intel graphics adapter into chunks that can be used by VMs. I tried it on my laptop and it indeed works as advertised. https://01.org/igvt-g

The traditional method, though, is just having a secondary GPU with VT-d passthrough. This will give you the raw performance of a dedicated GPU, and you can either connect it to an external display for no latency, or you can use something like LookingGlass to get a more traditional setup (SPICE input + KVMFR video.)

I used GPU passthrough for a while, only stopping because it occurred to me that modern Wine and Steam Proton had largely closed the gap for me in needing virtualization for graphical applications. libvirt + Qemu/KVM + virt-manager with Windows guest SPICE agent installed is my weapon of choice these days. Without a GPU passthrough configuration, dragging windows is a little laggy, and I can't imagine graphical programs will work well since there is no 3D acceleration, but the performance with a lot of other tools (like Visual Studio) seems fairly acceptable. I will note that they should really make an easier auto-install for the SPICE drivers and agent, because it was tricky enough that it took me a while to realize I didn't actually have the right agent installed.

VirtIO block and network devices also can offer some I/O benefit, though you will want to use the Load Drivers mechanism to load the viostor driver prior to installation; it's a little tricky to switch to VirtIO storage later, since the driver obviously needs to be available during early boot. You probably also want to avoid qcow2 storage, instead opting for raw image or even disk passthrough for better I/O performance.

Re:Technician keeps computer made in 1959 still humming along by enobrev on Wednesday July 31, 2019 @01:52AM (#20571985)
Thank you for this wealth of information.

I love the idea of a 2nd GPU, and I have a couple laying around that it's definitely worth trying. I already have three screens on my desk... what's one more?

I'm thoroughly impressed with the Wine project, and yet I'm generally hesitant to install it on my system. I think it may just be the massive install list I get when I try to `apt install` it. I've a similar aversion to installing KDE apps on a system that's not already running kde, which generally include about 150 other k* libs.

Steam Proton looks great. I'd played a few games once Steam started releasing them on linux and truly enjoyed how well some worked (and some _really_ didn't). I don't play as much lately, but this may change that.

It's going to take me some time to read about and further understand everything else you've posted here, which I appreciate.

Re:Technician keeps computer made in 1959 still humming along by jchw on Wednesday July 31, 2019 @02:51AM (#20572190)
Wine does tend to clutter the file associations a bit :( It’s probably possible to work around that but understandable that you don’t want to.

Steam Proton is great since it doesn’t do that and is mostly automatic. I was surprised to see Direct3D 11 titles running just fine at 60 FPS and maxed out settings, very cool.

And yeah, GPU passthrough is kind of the holy grail for desktop VMs. It’s definitely a little tricky, but once you have a good setup going it’s hard to beat. There’s a lot of guides. NixOS really shines here because your entire configuration can be declaratively configured, making your setup easily reproducible and surfacing all of the configuration in one place, but it’s obviously not distro dependent in any way and will work fine on Debian or Ubuntu.

Some downsides:

- Not all machines can VT-d, some can but are not stable. This is better today than ever.

- Your VM GPU needs to be in its own IOMMU group. Modern motherboards tend to do this basically automatically it seems, though its not guaranteed and if not your only workaround is a patch that lets you “split” the groups in an unsafe way that breaks isolation.

- Audio is tricky. Looking Glass does not forward SPICE audio today, so most folks configure qemu to output directly to PulseAudio. If you are using a physical display this approach obviously still works. You can also attempt to forward a USB audio device, or use audio over HDMI/DisplayPort.

edit: I hopped on my desktop. Here's my former NixOS configuration for GPU passthrough, to give you an idea of what kinds of system level configuration is needed:

    # IOMMU configuration
    boot.kernelParams = [ "amd_iommu=on" "pcie_aspm=off" ];
    boot.kernelModules = [ "kvm-amd" "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
    boot.extraModprobeConfig = ''
        options vfio-pci ids=10de:13c2,10de:0fbb
        options kvm ignore_msrs=1
    '';

    boot.postBootCommands = ''
        # Enable VFIO on secondary GPU
        for DEV in "0000:0a:00.0" "0000:0a:00.1"; do
            echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
        done
        modprobe -i vfio-pci

        # Setup Looking Glass shared memory object
        touch /dev/shm/looking-glass
        chown john:kvm /dev/shm/looking-glass
        chmod 660 /dev/shm/looking-glass
    '';

    virtualisation = {
        libvirtd = {
            qemuOvmf = true;
            # To make the PULSE Qemu audio driver work.
            qemuVerbatimConfig = ''
                namespaces = []
                nographics_allow_host_audio = 1
                user = "john"
                group = "kvm"
            '';
        };
    };
The virtual machine itself also needs some configuration. It will need to use UEFI with a properly-equipped TianoCore image to initialize the GPU. Also, to set the audio driver to something other than SPICE. Finally you need to add the PCI devices, this can be done trivially through the UI as long as you know the PCI IDs of your card.
Re:Technician keeps computer made in 1959 still humming along by mehrdadn on Wednesday July 31, 2019 @01:59AM (#20572010)
There's no way to do GPU passthrough on Windows, right? It seemed to be just a Linux thing last time I checked? And similarly with GVT?
Re:Technician keeps computer made in 1959 still humming along by jchw on Wednesday July 31, 2019 @02:45AM (#20572170)
This is correct, I am unaware of any way to bring GVT-g to Windows. It is probably not impossible but the groundwork isn’t there yet. I suspect Microsoft will have its answer in the form of GPU-P and SR-IOV, though it is currently unclear if that’ll work with consumer hardware or not.

Simple VT-d is supported in the form of DDA in Hyper-V - I have not attempted to use this for a GPU and I’m not sure what limitations it may have versus KVM’s PCI passthrough.

Re:Technician keeps computer made in 1959 still humming along by mehrdadn on Wednesday July 31, 2019 @02:51AM (#20572189)
Cool, thanks!
Re:Technician keeps computer made in 1959 still humming along by grawprog on Tuesday July 30, 2019 @08:15PM (#20570551)
I used virtual box running xp a few years ago for a vba project I did for a contract. I never ran into any issues.
Re:Technician keeps computer made in 1959 still humming along by mehrdadn on Wednesday July 31, 2019 @05:00PM (#20578498)
XP is NT-based, so it's not surprising. They're saying for non-NT systems it's an issue.
Re:Technician keeps computer made in 1959 still humming along by grawprog on Saturday August 03, 2019 @07:29PM (#20603382)
Ah ok fair enough. I have to admit i haven't tried running windows 8 or 10 in a vm since the preview builds. I assumed any instability was from the lack of polish on the OS itself in its state at the time.
Re:Technician keeps computer made in 1959 still humming along by baroffoos on Tuesday July 30, 2019 @11:19PM (#20571462)
What VM software are you using? I find that virtual box is always awful but I haven't tried anything else.
Re:Technician keeps computer made in 1959 still humming along by zlynx on Tuesday July 30, 2019 @08:44PM (#20570707)
I believe Windows 95 has trouble with CPUs that are too fast and needs to be patched to handle it.

I think I also read somewhere that older Windows (and some other operating systems) don't handle modern TCP/IP very well. A TCP session start with window size 9 and ECN bits, for example. And I believe there's more timing problems with networking as well, because no one believed in gigabit Ethernet back in the day.

Re:Technician keeps computer made in 1959 still humming along by mehrdadn on Tuesday July 30, 2019 @08:56PM (#20570772)
Oh wow I see, okay thanks.
Re:Technician keeps computer made in 1959 still humming along by wiremaus on Tuesday July 30, 2019 @04:45PM (#20568937)
It would, with setup to replicate the environment.

It might well be a miserable buggy experience compared to just using the original hardware.

Re:Technician keeps computer made in 1959 still humming along by throwaway2048 on Tuesday July 30, 2019 @06:45PM (#20569993)
Windows 95 is very difficult to get working in a VM in a reasonable way, and this machine likely relies on custom ISA cards, which is likely impossible to virtualize.
Re:Technician keeps computer made in 1959 still humming along by krige on Wednesday July 31, 2019 @01:48AM (#20571970)
Most VMs don't really work with Windows 9x which tends to crash even more than usual (NT based windows is fine though). The only one tool I know of that's running 9x relatively stable is PCem, and that's more of an emulator than a VM proper.
Re:Technician keeps computer made in 1959 still humming along by Aperocky on Tuesday July 30, 2019 @03:58PM (#20568517)
It's a lot easier to have better keyboard when space and weight is not a concern.
Re:Technician keeps computer made in 1959 still humming along by TeMPOraL on Tuesday July 30, 2019 @04:52PM (#20569017)
It's not like the parts have become bigger over the decades. With today's tech, you could easily make a laptop with a quality keyboard, with a form factor reminiscent of those old ones, packed full with modern hardware at fraction of the weight... that is, if manufacturers weren't optimizing for vanity metrics at the expense of utility.
Re:Technician keeps computer made in 1959 still humming along by baroffoos on Tuesday July 30, 2019 @11:21PM (#20571468)
Because people care less about how nice the keyboard is and more about how light it is which is a valid concern when you carry the thing around with you everywhere. The keyboard I have plugged in to my laptop weighs as much as the laptop itself.
Re:Technician keeps computer made in 1959 still humming along by cosmodisk on Tuesday July 30, 2019 @04:17PM (#20568688)
Can only agree to certain extent.Lenovo ThinkPads retain exceptionally good keyboard design despite being wafer thin.I have a bulky Toshiba made in 2015 and the keyboard is just very so so. At work I've got XPS 13 and the keyboard is really nice,so ultimately its down to the industrial designers.
Re:Technician keeps computer made in 1959 still humming along by caymanjim on Tuesday July 30, 2019 @05:20PM (#20569295)
I have a late-2018 ThinkPad X1 Extreme, and while I love the feel of the keyboard, the keys around the mouse nub (GHBN) started becoming increasingly unresponsive after only a few months. Last week, the whole machine died horribly (unrelated), so I'm hoping to get the keyboard replaced as well when I send it in. I love the machine, and overall it's well-built, but I'm going to be wary of the keyboard. One of the main reasons I bought the ThinkPad was because I'd gotten fed up with MacBook keyboard failures.
Re:Technician keeps computer made in 1959 still humming along by freedomben on Tuesday July 30, 2019 @09:28PM (#20570944)
Thanks to the self-serviceability of Thinkpads, replacing the keyboard is pretty easy. My Thinkpad gets a lot of use so I replace the keyboard about every 12 months. I do wish it were easier to order parts directly from Lenovo, but you can find them on Amazon and many other e-retailers.
Re:Technician keeps computer made in 1959 still humming along by cosmodisk on Tuesday July 30, 2019 @06:15PM (#20569747)
The reason I ended up with XPS 13 instead of ThinkPad was appalling service levels from Lenovo.They are on the same level at least in the UK,as an average run down kebab kiosk. I don't think I've seen any other company that'd have 0.8 rate on trustpilot: https://uk.trustpilot.com/review/www.lenovo.co.uk Not sure how they remain the largest computer manufacturer on earth..
Re:Technician keeps computer made in 1959 still humming along by caymanjim on Tuesday July 30, 2019 @09:53PM (#20571073)
I called customer support on a Sunday evening, and quickly got connected to a US-based support person. They sent me a return box overnight. So far I'm happy with the quality of service. The real test will be what happens after I ship it in for repairs. No complaints yet, though.
Re:Technician keeps computer made in 1959 still humming along by raxxorrax on Wednesday July 31, 2019 @10:33AM (#20574701)
On the other hand I think the focus on convertibles is a complete failure. We order a surface here and there but it isn't really something you would want to work with very long compared to a classic design. I also like exchangeable batteries without having to lose warranty. These are service parts ffs.

The market for laptops did shrink significantly due to phones, but I know a lot of people that still prefer to use a classic laptop for home use.

So while the market did shrink, the rest was almost entirely destroyed by bad design decisions.

I still don't know why people use devices like iPads, it is a complete mystery for me. They are as useful as tramp stamps.

I couldn't care less about weight or dimensions if that means I could get high quality parts. Not I don't get them and some models are still beyond 1000$...

Re:Technician keeps computer made in 1959 still humming along by CamperBob2 on Tuesday July 30, 2019 @04:14PM (#20568668)
Oh, those were concerns back then, too. They just weren't the only concerns, as they are now.
Re:Technician keeps computer made in 1959 still humming along by xur17 on Tuesday July 30, 2019 @11:38PM (#20571531)
I have a Lenovo Thinkpad X1, and I'm really happy with the keyboard. Had a Macbook for several years, and almost always used it with an external keyboard because of the horrible built in one.
Re:Technician keeps computer made in 1959 still humming along by mrslave on Tuesday July 30, 2019 @07:16PM (#20570196)
Reminds me of "A Commodore 64 Is Still Being Used to Run an Auto Shop in Poland (gizmodo.com)"[1] though I was not able to afford such a luxury when I was young.

Every decade or so I boot an old DEC Alpha. Last time I dist-upgraded Debian (woody to etch?) and everything worked - if a tad slow.

The power of nostalgia.

[1] https://news.ycombinator.com/item?id=12604414

Re:Technician keeps computer made in 1959 still humming along by rxhernandez on Tuesday July 30, 2019 @06:53PM (#20570063)
Same; except it's a Dell Inspiron that's about 16-18 years old. It's outlasted a couple of my thinkpads but that's probably because I've taken those thinkpads places I would have never taken the Inspiron.
Re:Technician keeps computer made in 1959 still humming along by xelxebar on Wednesday July 31, 2019 @08:20PM (#20580069)
Speaking of, I'm trying to get my hands on a T400s Thinkpad, but not having much luck finding these units.

I plan on flashing it with libreboot and want to give guixsd a try as a daily driver.

Re:Technician keeps computer made in 1959 still humming along by amiga_500 on Tuesday July 30, 2019 @04:39PM (#20568888)
I have a working amiga 500. Must be over 25 years old now, nearer 30.