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
November 12, 2025
Stack Overflow Co-Founder to DHH: You Should be Afraid of Me

Jeff Atwood (co-founder of Stack Overflow & Discourse), appears to make a public threat against Omarchy & Ruby on Rails founder, DHH. Threats of violence are a pattern among Open Source Leftists.

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

00:16:33
November 12, 2025
Multiple Vulnerabilities Found in Rust Sudo Clone in Ubuntu

Ubuntu is now shipping with Rust based replacements of core utilities (sudo, date, du, etc.). And the steady stream of bugs, missing functionality, and security vulnerabilities continues.

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

00:18:01
November 12, 2025
4chan's Lawyer Talks to Lunduke

Preston Byrne, the attorney representing both 4chan and Kiwi Farms, talks with Lunduke about Ofcom and the United Kingdom's censorship campaign against Americans.

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

00:56:04
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
18 hours ago

Meanwhile in Pakistan...

post photo preview
20 hours ago

This is scary, Comrade!!!

November 14, 2025

Like it or not, so-called artificial intelligence (AI) is now a requirement. As part of the IT & cyber security toolkit. Not doing so now gives bad actors a leg up.

Inside Anthropic's Detection of an AI-Run Cyberattack on 30 High Value Global Targets - YouTube

November 13, 2025
There are 3 certainties in Tech. One of them is 50% off Lunduke Journal subscriptions today.

Life is filled with uncertainties.

  • Will Valve’s new Steam Machine be reasonably priced?

  • When will Microsoft replace the Windows Calculator with an AI chatbot?

  • Will The Lunduke Journal have a sale next week?

Do you know the answers to any of those questions? Shoot. I sure don’t!

But, within the Tech Industry, there are 3 certainties:

  1. There will be more bugs found in the Rust Core Utility clones.

  2. GNOME will say something stupid before the day ends.

  3. And The Lunduke Journal is having a sale right now.

Why take chances? Embrace what you know for certain and grab a Lunduke Journal subscription, right now, for 50% off.

$3 / Month. Or $27 / Year (which works out to… [does math]… $2.25 / Month). Or $150 for Life (seriously… for life).

Which will then give you all of the perks:

  • DRM-Free MP4 Downloads of all videos.

  • Full access to the exclusive forum.

  • And a bunch of nerdy eBooks.

50% off subscriptions lasts through Friday (November 14th).

Maybe the sale will be extended. Maybe another sale will happen again in the future.

Then again… maybe not.

Can you really take that chance?

-Lunduke

Read full Article
November 12, 2025
Lunduke Journal Update: Nov 12, 2025

Just a few quick Lunduke Journal-y tidbits on this fine Wednesday afternoon!

  1. Two fascinating interviews this week: DHH and Preston Byrne (the attorney for 4chan). Both are worth catching if you haven’t already.

  2. The 50% off Subscriptions deal has been extended through this Friday (Nov 14th). So many of you kept picking up new subscriptions… I figured… what the heck! Why not keep the party going? So Monthly, Yearly, and Lifetime subs are all half off at least through Friday!

  3. The “Lifetime Subscriber Wall” isn’t part of today’s (November 12th) shows. There have been so many requests to be added to the wall this week that I need to update the design a bit to fit everybody. The Lifetime Wall will re-appear at the end of new shows tomorrow or Friday.

Once again, thank you for your support! None of this would be possible without you!

-Lunduke

Read full Article
November 11, 2025
Lunduke taking Veteran's Day off

Today, we honor our veterans and their service to our nation.

Great men, like my grandfather who, during World War II, joined the Navy at 14 years old. He was a big, older-looking teenager… so, as was not unheard of, he lied about his age on the paperwork in order to go fight the Axis.

And his father, who joined in the year leading up to the start of World War I.

I am taking this Veteran’s Day off. In part to spend time helping my children learn about their family’s US military history (which goes back, on multiple lines, to the very beginning of our nation). And in part… to watch one of the greatest movies ever made, The Great Escape. Because, hey, Steve McQueen and James Garner! Pretty sure my Grandpa would approve.

Lunduke Journal shows will resume tomorrow (and I’ve got an awesome one lined up).

In the meantime, if you haven’t watched yesterday’s DHH interview yet, highly recommended. Watch (or listen) to it anywhere you like.

And, in the grand tradition of “Veterans Day Sales”, I’ve extended the 50% off all Lunduke Journal subscriptions discount through this coming Friday. Because I can. Pretty sure my Grandpa would approve of that 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