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 07, 2025
GNOME Declares War on Framework Computer

GNOME OS Team says Framework "supports Fascist and Racist s***heads", "does not feel comfortable in further collaboration". GNOME Board wants to talk to groups "reconsidering working with Framework".

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

00:19:09
November 06, 2025
Can We Trust Rust?

Debian Linux and Ubuntu are forcing adoption of Rust at core levels of the system. Considering the large numbers of Leftist Extremist Activists among Rust developers... can that software be trusted?

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

00:24:30
November 05, 2025
Devuan 6.0 Released: No Systemd & Non-Woke Debian

Devuan's Code of Conduct: "We accept everyone's contributions, we don't care if you're liberal or conservative, black or white, straight or gay, or anything in between!"

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

00:14:08
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
November 09, 2025

What on earth is FireFox up to?

House Blend: A coffee rave by Firefox

https://partiful.com/e/kFZeKGV7XQi6aLieLaWF

November 08, 2025

Having some fun. 486 is complete. Just enjoying. I guess I should make another video and try to summarize what i did. But in the meantime, I'm playing games in DOS, using a Window 7 PC to capture that video output, then using Manjaro to capture that output. A little convoluted, but the outcome is actually pretty good. Had to get a picture of the whole ridiculous setup.

post photo preview

Hey guys. I have been away for a while (But stilll supported Lunduke all the time). Where is the place to be in the Lunduke-Verse. Here or the forum?

November 06, 2025
50% off Lunduke Journal subs extended through Nov 10th

Just a quick heads up:

The Lunduke Journal has a 50% off discount on all types of subscriptions — Monthly, Yearly, and The World Famous Lifetime Subscriptions (tm). And that discount has been extended through this coming Monday (November 10th).

Just for kicks.

All of the details are right here.

Or you can always go to Lunduke.com and click the fancy-shmancy “50% off” link.

Here’s a map on how to find that link.

 

Think of it like a treasure map. Only better. Because you don’t need to stand up and walk. Walking is hard.

-Lunduke

Read full Article
November 01, 2025
$3/Month, $27/Year, $150/Lifetime for The Lunduke Journal

For those who missed it:

50% off Lunduke Journal subscriptions through Monday (Nov 3rd).

At half-off, that means the price of a full Lunduke Journal is:

  • $3 / Month (normally $6)
  • $27 / Year (normally $54)
  • $150 / Lifetime (normally $300)

No matter which subscription you choose, you get all of the perks.

Plus, Lifetime Subscribers get two extra goodies:

Pick whichever type of subscription you want, get some cool perks, feel awesome about supporting Big-Tech Free, non-Woke Tech Journalism.

-Lunduke

Read full Article
October 30, 2025
50% Off The Lunduke Journal through Nov 3rd

Holy moly, there’s a lot of new Free Subscribers to The Lunduke Journal!

As a way of saying “Welcome!” to all of you new people, here’s a little (well… big) discount on full subscriptions.

50% off all types of Subscriptions (Monthly, Yearly, and Lifetime) through November 3rd (Monday).

All of these discounted Subscriptions come with all of the perks:

  • DRM-Free MP4 Downloads of all videos.

  • Full access to the exclusive forum.

  • And a bunch of nerdy eBooks.

Scroll down. Pick whichever subscription type makes sense to you — ranging from a $3 monthly sub… to a Lifetime subscription (I highly recommend picking one up, it is so choice).

Then grab some of those perks and pat yourself on the back for keeping truly independent, Big-Tech free Tech Journalism alive and kicking!

50% Off Yearly or Monthly Subscriptions:

Available via both Locals and Substack. (This includes full access the community Forum, and all other perks.)

That means $3 / Month. Or $27 / Year (which works out to $2.25 / Month).

Via Lunduke.Locals.com:

Via Lunduke.Substack.com:

Note: You can also grab a Monthly subscription via X, YouTube, or Patreon. There’s no way to offer a discount on those platforms. But those are still good options!

The Famous Lifetime Subscription:

The “World Famous Lunduke Journal Lifetime Subscription” is exactly what it sounds like. Pay once and get full access to The Lunduke Journal. For life.

Now, through Monday, November 3rd, you can snag one at a crazy discount. Normally these are $300… but you can grab one for $150. (You can also pay more if you’d like to donate a little extra.)

The Lifetime Subscription can be obtained via Locals, Substack, or using Bitcoin. All three options work great and are super easy (& all three include access to all of the perks). Scroll down and choose your option.

Note: The Lifetime Subscription only applies to Substack and Locals. Other platforms (such as X, Patreon, & YouTube) do not provide the functionality necessary to create Lifetime Subscriptions.

How to get a Lifetime Subscription via Locals:

  1. Go to Lunduke.Locals.com/support.

  2. Select “Give Once“.

  3. Enter “150“ (or more) into the amount field.

  4. After checking out, Lunduke will toss you an email once your account is set to full lifetime status. (This usually happens within a few hours.)

How to get a Lifetime Subscription via Substack:

  1. Go to Lunduke.Substack.com/subscribe.

  2. Select the “Lifetime Subscription” option.

  3. After checking out, Lunduke will toss you an email once your account is set to full lifetime status. (This usually happens within a few hours.)

If you would also like full, Lifetime access to Lunduke.Locals.com (which is included):

  1. Make a free account on Lunduke.Locals.com.

  2. Email “bryan at lunduke.com” with the email address you use on both Substack and Locals (can be different email addresses).

  3. Lunduke will toss you an email once your account is set to full lifetime status on Locals.

How to get a Lifetime Subscription with Bitcoin:

You can also obtain a Lifetime Subscription via Bitcoin.

bc1qyjakve8fywm8pz2v99v57yhjj0vzr2vjze6fcq

  • Email “bryan at lunduke.com” with the following information: What time you made the transaction, how much was sent (in Bitcoin), and the email address you use (or plan to use) on Locals.com or Substack.com (or both).

No matter which type of subscription you choose, thank you for your support! Every subscription goes directly towards keeping The Lunduke Journal running well into the future.

-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