Skip to content

u/kristopolous

In this archive from Nov 2012 to Oct 2023

1
posts
71
comments
0
media
304
score

people seem to be happy with ardour but honestly I just do things in python, pulse and ffmpeg these days.

I used to do a bunch of work over here: https://wiki.linuxaudio.org/wiki/start but things fall in disrepair.

I've also heard ok things about waveform https://www.tracktion.com/products/waveform-free

I made this in audacity about 6 months ago just because I wanted to give it another go, https://soundcloud.com/kristopolous/take-me-to-m-1015 ... the continued frustration with that is what made me leave my comment.

1 points

Sure they could. This is pretty much exactly what it would look like.

Kb/s rate is kinda dubious with small sample sizes. You can measure packet sizes and how frequently you get them and that's what this is doing. A packet is occasionally coming in and it's smoothing out the graph using a sliding window average so it looks like a lump

It's could also be a periodic ack/response for something like zeroconfig or avahi although that's pure speculation. Certainty is possible if you use the right tools. Some of those devices are stupid noisy. It could also be an iot device. Most of those things are written by incompetent clown cars.

And you know what? It doesn't actually matter. Modern networking infrastructure can handle an overly chatty wifi enabled lightbulb just fine.

The fact that incompetent doofuses can still pump out successful products is a testament to how great hardware is these days

1 points

Ugh to all of these comments. You need to figure out what level of the network stack you're looking at

There's a bunch of packet types that aren't TCP or will reach any applications. For instance, authentication layer or AP broadcasting. There's also things like ARP and even at the TCP layer there's nonspecific broadcast packets

What you're showing is some line graph that does one measurement and says it doesn't agree with another measurement.

Put a second adapter in promiscuous mode and capture the traffic. Anything else is blind men discovering elephants (unless you have actual competency here in which case you can get by with less)

Also if you're really interested, get a cheap panda usb wifi card. They're pretty versatile, small, and great for capturing and as I said don't cost much. Just study the chipset before you buy.

My guess is you're using wpa supplicant with a buggy driver and keep deauthing. Check the logs. If this is the case, use iwd, wpa supplicant is a poorly cared for - volunteer effort by extremely busy people

4 points

Make sure your exhaust fans are spinning. It could be heat related.

If the case seems really unusually hot that can be an issue.

Most computer hardware failure either makes noises or generates heat..

Of course do dmesg, that's obvious though. Also lm_sensors

There's various things you can do to tell the computer to be more modest and slow in order to give it enough time so runaway type failures don't get to thresholds. They'll save you maybe 60% of the time before total failure

1 points

When your spend many hours working on something just to have your earlier work magically break on you, it's insane. It wrecks the sound. It's easy to tell. Even on a phone speaker it's stupid obvious.

If I write a book, should editing page 75 make letters swap around on page 12? Needless recalculations are constantly done, introducing floating point error and eventual drift. They had a purpose to defend against older code which is no longer there

Sincerity, hard work, real statements based on facts, no place for that on the internet.

I try hard to make shit better but I guess fuck that. No wonder everything sucks

1 points

It's extremely buggy for my high precision use cases with complex projects. Thanks for reminding me to move away from it. It's really aggravating how it moves things around by tiny amounts after editing. I've submitted patches but nobody seems to care.

It's a fine butter knife but I'm not buttering bread with it

Edit: Oh look, consequences for reality strikes again

-4 points

I have problems with it dozens of times a day and have for over 20 years. It's completely inexcusable unusable trash. There's XA_PRIMARY, XA_SECONDARY, XA_CLIPBOARD and if you say want XA_PRIMARY but you did XA_SECONDARY then by selecting the text to replace it, WOOPS now it's also XA_PRIMARY and you're SOL. For XA_SECONDARY versus PRIMARY versus CLIPBOARD every fucking application has a different opinion on which one is which. Also it's not even event driven. It's bonkers batshit crazy. Smalltalk Blue book, 1980, talked about event based interface loops. I mean fuck, Ivan Sutherland's 1963 PHD thesis talks about them. X clipboard(s) have still never heard of them and so you are polling. Bonkers.

You can combine all of these stupid clipboards which means that if javascript selects some text, if you select some text, if some stupid electron app selects some text, then your clipboard is gone. It makes things like the medium.com editor totally unusable and all those helpful "auto copy to clipboard" things completely fucking broken.

But the select to copy doesn't always select to copy. Each application can implement that however they want. So that's only common but not always persistent. It's a total clusterfuck nightmare of a bullshit system. Xerox ALTO had it solved in 1973. Windows had it solved in 1.0 in 1985. I've used an Apple Lisa and it worked fine on it. But no, in Xorg, we can't have it working. No.

This has been around for 38 years. THIRTY EIGHT. It was broken in 1984. It's broken in 2022. It's inexcusable fucking garbage.

Maybe I need to go fix it. I hate it so much.

1 points

At the end Gitlab is just another cloud hosted venture backed private SAS company, sure their product is open source, ok, but so is a lot of Oracle and Apple stuff. It's standard industry practice. They get some free labor and keep the profits

Sand hill road didn't give Gitlab millions of dollars to run a charity.

If you really want to be all FLOSSy about it, go with https://gitea.io/en-us/.

4 points

I'm going to do "the thing" here. Why a 486 then?

You're going to hit a lot of walls such as a reliable source for entropy bits for encryption. It will take minutes to generate keys for instance. There's more entropy requirements in operating ssh than you may realize and you'll likely be bitten by this limitation at every startup to some extent (look into sshd_config for more details). So you may get like ~5 minute boot times without a bit of work.

On a VAX 11/780 for instance, just last year, ssh key creation for me took about an hour. The sshd daemon will then become your bottleneck for file transfers. Expect ~100KB/s on a local network for file transfer on a 486. Look into FTP/NFS to avoid the encryption overhead. If it's a local network, you might even consider telnet. You can also force older less CPU intensive algorithms as well if you really want performant ssh.

Also unless you're going to figure out a way to stuff 64MB of RAM in the thing you'll choke pretty quickly. Do research on what your board supports. Anything over 64 is uncommon. There are a few that support 128/256 although they are quite rare (heck, there's even at least one, the olivetti 5040E that uses a proprietary "olibus" that could do multiprocessing and 1GB with some addon cards). Outside of those few exotic birds like this 4-way mylex, seeing a mix of 72 and 30 pin slots like this is a good sign you have a magic board.

It's possible to make do with less then 64 you'll likely hit swap regardless (more below about that). Under 16 and you'll likely run into booting problems unless you choose wisely.

Also there's processor instructions things are compiled against which your 486 simply will not support so you'll likely have to recompile. Oftentimes you won't know this until you start running the program and it mysteriously dumps core at strange places. It really is that finicky. This will even happen on older pentiums. Testing pre-mmx pentiums and 486s is in nobody's release qualification chart in 2021.

Along with that the modern compiling toolchain is pretty hungry so doing it on the host may be an issue which means you'll probably need to cross-compile it from a modern machine to the reduced instruction set.

You could pretend that gcc 2.95 ought to be enough for anybody but you'll quickly discover lots of modern software simply does not even parse with the older compilers because the code is using C99 or modernish C++ features.

So I'm serious about the why question. You'll get better results from a Pi zero, it's ~$13, you don't need to keep old platter disks running and it will take a fraction of the power.

Is it some cool old laptop? Just curiosity?

As you can probably tell, I've done this stuff before, being able to instrument the machine externally is important. It makes problems way easier to fix.

Two buys you should consider: a "IDE SD card" ($10), it'll make your life way easier. Especially if you point a VM at it on a modern machine. Beyond that get a "PCI USB card" ($7-50) and you can put modern hardware on it, essentially "it just works". Here's a breakdown:

 MB/s  Tech
  1.5  USB 1 <-- Avoid. Not worth it.
  3.3  IDE (PIO 0) <-- Possibly you
  8.0  ISA <-- You certainly support this.
 16.7  EIDE/ATA-3 (PIO 4) <-- Possibly you as well.
 33.3  EISA <-- You very likely have these (backwards compatible to ISA)
 40.0  MCA <-- My sympathies if you have this. the number of people running modern linux on it will go from 0->1
 60.0  USB 2 <-- Cheap and plentiful
100.0  ATA/100 <-- If you have PCI, you can get this.
133.0  ATA/133 <-- And this. In fact, just get this.
133.0  PCI 33Mhz <-- This is your bus, likely (PCI 1.0, 1992)
167.0  UDMA/167 <-- Not cheap.
177.0  FPM/DRAM <-- Probably your RAM.
266.0  PCI 66Mhz <-- Very unlikely but might be you (called PCI 2.1, introduced 1995)
400.0  USB 3

So yeah, ATA/133 and USB 3.0 are your friends here. SD card performance is a different topic - if you buy one that's recommended for video you'll likely be fine. USB 3.0 legacy PCI cards are between $25-$50 depending on how lucky you get. Look up PCIUSB3S22 for 2-port and PCIUSB3S4 for the 4-port variation.

USB 2.0 cards are way cheaper and quite plentiful.

These are "maximum theoretical speeds" not actual real world ones. But making sure you have a fast I/O pipeline where you don't all of a sudden hit say, a 1.5 MB/s USB 1 bus or a 3.3 MB/s PIO 0 bus is worth the effort. If you can get 100 MB/s disk throughput on a 486 by carefully spending under $100 then I say do it, especially if you can get something that realistically will be probably between 50-75% as fast as your RAM.

Oftentimes the old BIOSes won't support hard drives over 528 MEGAbytes, as in under 1gb. Those old drives are slow, all close to failure, and will present quite a challenge for a modern linux install. They're reasonably priced if you really want one, but they're all over 26 years old (500MB were made around 1994) and the platter's material degrades, the controller chips fail, the reading head becomes loose ... it's no good. I love them and I wish you luck, but unless you really want it, try to avoid them.

Instead, if you're up against the 528MB wall, get a "PCI ATA" or an "ISA ATA" card and then hook your IDE SD bridge to it and you'll be able to put in a modern, say, 16GB SD card.

If it's E/ISA ONLY then you may want to go with an ISA SCSI card and then do a SCSI2SD, which is more expensive, but both are easier to find than an ISA/USB or ISA/ATA card (both exist, you'll probably be writing the drivers yourself though)

Assuming PCI, there's 2 additional major capacity walls depending on the age of the ATA card you just got, one at 2.1GB and another at 33.8GB. So try and look for a relatively modern PCI IDE card (post-2000 or so) to avoid that and you should be able to pop in a card > 100GB and be ok. "ATA-133" support is a reasonably reliable proxy for that.

You won't be able to boot from CD btw, iso9660s "el torito" boot sector predates your hardware so if you throw my advice to the wind, you may be lucky and have an updated BIOS but more than likely you'll need to go get yourself some floppies. Modern Linux kinda ignores the root/boot 1.44MB limit but there's a variety of options out there if you really want to (I recommend installing on a newer machine then hook up the sdcard contraption after the install to the 486 and cross your fingers). If you really really want floppies and 1.44 is not enough there may be 2.88 (called 3 1/2 inch ED or Extended, as opposed to HD, 1987 - many IBMs had this) models compatible with your hardware, people call this "2.88 floppies" online, don't expect to get them for cheap and check the connectors - there's a bunch of different kinds of 2.88s (they were used in unix workstations). The famous 120mb superdisk is unlikely to work in a way your bios understands for boot.

Anyways, after boot you can mount via USB (with the PCI USB I recommended) or over network (see below) for additional storage - such as the things you just cross compiled.

Now make one of those your swap drive (the sd or usb). It'll be slower than RAM but way faster than platter. Making swap a dedicated device and going with modern fast hardware is highly advisable. If you ignore this and do host kernel compiles using platter based swap, be prepared for ~2 week compile times. No really, that path will take ~200-2000 times longer.

If it's a laptop, get the docking station. You'll get a lot of options, including sometimes a peripheral slot, like an ISA or PCI, for instance

If somehow none of this is possible, check for PXE boot options there's cheap ISA ethernet cards with PXE chips * . Then you can completely netboot, not use local disk or floppies at all and control the machine like a puppet until you get it right. If you have a PCI slot for it then go with that, the ISA bus can't keep up with 100Mb/s ethernet, yet alone 1Gb/s.

If it's a laptop, get a "PCMCIA to USB" card to get yourself on a modern bus and see above for details. A 486 laptop likely DOES NOT support CardBus (~1997) so make sure it's labeled something like "16-bit PCMCIA" or "PC CARD" - the connectors are identical. If it's a SCSI machine, you'll pay a bit more but all the same hardware exists. If it's MFM, just use the ISA slots and ignore the MFM.

And finally if you want to not save time then ignore all of this and enjoy your hobby.

Note: pxe chips. see this .. how there's that hole for a chip on the left, this card doesn't have it. Here's a card with it see how there's no optional chip that's not there. You need one with the chip for PXE

143 points

I assume you've already done the Tannenbaum "Operating Systems: Design and Implementation" stuff?

It's the most approachable, reasonable but also in depth thing I've found on this topic, even if it's Linux adjacent, the crossover is still very significant

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.