Lunduke
News • Science & Tech
Make Computers Fun Again - Linux, UNIX, Alternative Operating Systems, Computer History, and Retro Computing. Also dad jokes.
Interested? Want to learn more about the community?
September 19, 2022

I got a mad idea, and I blame DOS week for. The background for this is special_snowflake, the FOSH computer I've been building/writing for the last 5 years. Without going into all the details (because then I'll be here for two days), its new CPU is registerless and directly reads and writes into main memory for all instructions. To make it performant, the "main memory" is 0.5-8 KiB is size and treats the actual RAM as expanded memory, copying bits of it in and out. Like a disk. Now, that leaves me with the question of organization of this expanded memory. I decided I won't go the normal route and I won't implement a virtual memory system. Which leaves me with the question of what to do.

And then it occured to me yesterday. What IF you treated your expanded memory as a literral disk and put FAT on it? To allocate memory, processes create a file of some size. Processes can pass memory objects to each other by passing filesystems paths around. All memory objects are dynamically sized. Some implementations of FAT (DR-DOS 6.0 and others) track user&group ID as well as access permissions for them. You could literally implement the well-understood-by-sysadmins Unix filesystem permissions model for all memory! Super important: a single categorization unites ALL of memory which means ALL of memory is always accounted for. Modern systems have all kinds of weird kinks. Inodes, sysfs, procfs, netlink, ioctl, device nodes, semaphores, muliple kinds of sockets, multiple namespaces for all those kinds of sockets, acl, quotas, memory maps, process trees, uids and guids, mounts, etc, etc... If you put all of those into a filesystem, you suddenly make them all observable and manipulable. Another benefit: it's now possible to dump the entire contents of memory to real disks and examine them or change them. Messing with system internals is now easier than ever! And the best part? Both the running memory and the disk image of it can be manipulated with normal filesystem tools!

This can be made to play real nice in a microkernel design with lots of system daemons offering services. I already checked the extensive Wikipedia article on FAT and I found that it practically nativelly supports being used for this purpose. You would need to repurpose some fields from what Microsoft uses them for, but this is a long and time-honoured tradition. The article (linked below) lists several mutually incompatible standards for various data structures that were all used in parallel by several operating systems from several vendors.

Besides breaking the Microsoft's non-standard on FAT, there are two other problems I can see. The first is that my CPU is big-endian and FAT is used on little-endian machines which means the multi-octet fields will be messed up. That can be lived with - this will only come into effect if somebody attempted to mount the memory image on a little-endian machine, but that can be fixed by the appropriate filesystem driver.

The much bigger problem - and the only serious problem I've so far seen - is that FAT keeps track of file contents in a singly linked list. That's.... inapropriate for quick access. :) Since the use of this scheme implies there is only one daemon which manages the memory filesystem for all other applications, and since this is the only place where file handles (or whatever) is handed out, this limitation can be worked around. The filesystem daemon could keep a special structure for all open files/assigned file handles which has a map to all clusters that are part of the file. So if you want to randomly access parts of a large file, the FS daemon doesn't have to read the entire FAT from the start, it can just read from its map. But the problem is that, since this is a memory management scheme, most files can be expected to be open. Which would mean most files would have an associated fast-access map. But then the question is why have the FAT, if most access is going through the map?

Another mitigation strategy is to take care to have the memory defragmented, and then try to assign memory in large contiguous blocks of clusters. That way, if the random access happens inside such a large block, working out the sector (=page) that is to be accessed should be straightforward. The access map cache from the previous paragraph then only needs to keep track of starts and lenghts of blocks. The scheme is simpler, requires less overhead, and should benefit from the last four decades (!) of improvements to FAT drivers and algorithms.

This manage-memory-as-a-filesystem idea can BTW also be implemented on normal registered CPUs, by having some pages (in the reserved section between the sector 0 and the first FAT table xD ) function as faux main memory for currently running processes and the rest used in the FAT.

Wikipedia page on FAT: https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system

Interested? Want to learn more about the community?
What else you may like…
Videos
Podcasts
Posts
Articles
The UK Begins Process of Blocking 4Chan in 60 Days

The United Kingdom Office of Communications (Ofcom) has issued a fine to 4Chan. If 4Chan does not pay the fine in 60 days, it can be blocked in the UK.

More from The Lunduke Journal:
https://lunduke.com/

00:10:08
October 13, 2025
Framework's Discord Moderators Go on Strike over "Fash" Software Support

Volunteer moderators have "taken a hiatus" in response to Framework supporting Omarchy Linux and Hyperland - which Leftists say have "Hitler Particles".

More from The Lunduke Journal:
https://lunduke.com/

00:24:12
October 13, 2025
"detect-fash" Feature Developed (and Rejected) for Systemd

"A utility to detect problematic software and configurations," such as Omarchy Linux, Hyprland, & Ladybird, was developed by an account with a Russian Military email address.

More from The Lunduke Journal:
https://lunduke.com/

00:14:38
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044
October 14, 2025

Heads up: The “Linux Sucks 2025” livestream planned for October 14 is being bumped out a couple days due to technical hiccups in the streaming setup.

Had streaming issues for the last several days, so makes sense to sort that out before doing a big show.

Updated schedule asap.

Now, let’s take a second to think about this. How can they access your BIOS remotely? Tell me again it isn’t just a back door with a marketing team behind it…

K&R Streaming continues.

More pointer madness, and maybe some other bits:

placeholder
October 13, 2025
Sale ends in a few hours, Lifetime Subs set up.

Holy moly, you guys are amazing.

A few days ago I published a “50% off” sale for Lunduke Journal subscriptions… and all of you showed up. In a big way.

To everyone who grabbed a Lifetime Subscription over the last few days: All of you are set to full Lifetime access. You should have a confirmation email in your inbox. If not, email me and I’ll make sure you’re setup properly.

That “50% off” sale ends tonight at midnight. So you have a few hours to snag a discounted subscription, if you haven’t already.

A huge thank you to everyone who supports this work. Couldn’t do it without you.

-Lunduke

Read full Article
October 12, 2025
50% Off Lunduke Journal Extended Through Monday (Oct 13th)

Just a quick heads up:

The “50% off every kind of Subscription to The Lunduke Journal” sale has been extended through Monday (October 13th).

So. You know. Grab one at 50% off between now and end of the day on Monday.

To all of you amazing nerds who have picked up a Lifetime Subscription already this weekend: You are awesome. You’ll be receiving a confirmation email, with all of the Lifetime Subscription details, by tomorrow (if you haven’t already).

Oh, and remember how we hit 11 Million views last month? Yeah. We’re well on our way to blowing past those numbers in October.

Wild.

See you all on Monday!

-Lunduke

Read full Article
October 12, 2025
The Asymptotic Line of the Lifetime Lunduke Subscription
(Visualized with the power of spreadsheets and charts.)
 

The Lunduke Journal’s World Famous Lifetime Subscription (tm) was introduced 3 years, 3 months ago.

Every day that passes, the value of that Lifetime Subscription gets better and better. Like any good asymptotic line, it steadily approaches 0 (but never quite gets there).

Let’s do some math!

At that price, the cost “Per Month” of a Lifetime Subscription, after 39 months, is $3.85.

By 39 months after that, the “cost” goes down to $1.92. And it keeps getting closer to zero. Every month. Heck. Every day.

(Even at the regular price, the value of a Lifetime Subscription is a sweet asymptotic line. But discounts are doubly good.)

Now. I’m just going to throw a few nuggets of information at you. Do with them what you will.

  • Lunduke has been publishing Open Source & Tech News since 2006 (almost 20 years) and I’m still getting warmed up.

  • The Lunduke Journal Lifetime Subscription has been around for over 3 years already.

Based on that, sure does look like good odds that Lunduke is going to be doing this sort of reporting for a very, very long time. Which makes the Lifetime Subscription a safe bet.

Plus… and I’m no Math-a-tologist (tm), but… it seems to me like the earlier a person picks up a Lifetime Subscription, the better the deal gets.

My suggestion?

  1. Grab a Lifetime Subscription at the discounted price before midnight (because saving money is good).

  2. Enjoy the perks (like forum access and the downloadable shows and books).

  3. Never need to worry about paying for a monthly subscription again.

  4. High five yourself every month, as the “Cost Per Month” of your Lifetime Subscription steadily moves towards 0.

Again… do it before midnight tonight (Sunday, October 12th), when the price goes back to normal.

But that’s just a suggestion. If you’d prefer to pay a fixed rate, every month, which never approaches zero (like a totally awesome asymptotic line)… that’s ok too. 😎

-Lunduke

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals