200 MB RAM FreeBSD Desktop

(vermaden.wordpress.com)

117 points | by vermaden 3 days ago

14 comments

  • badc0ffee 4 hours ago
    I remember booting up Debian into an X11 session on a laptop with only 8 MB of RAM.

    (This would have been circa 2000, and I think I had to try a few different distros before finding one that worked. Also I don't think I did anything with it beyond Xterm and Xeyes.)

    • don-bright 1 hour ago
      Ran linux in an 8 mb 486 in the 90s. X ran in 256 color mode and twm or mwm were the window managers. It was so hard to use though. Had to setup modelines settings for your monitor in a textfile and theoretically could damage it with wrong iputs. Programming X fuggedabout it - I was from turbo borland msdos land where everything was neatly documented and designed with clear examples to make programming easy. I was lucky to get an x program to even compile. Hard to find books back then. Pre Amazon. Xv image viewer probably the only thing i used X for. Actually used the machine most of the time in the text mode terminals using alt function keys and used lynx as a browser (before javascript… but gopher was becoming obsolete at that point… ftp still popular though ) with random assortment of svgalib programs for any graphical stuff. Still there was something magical about seeing that black and white check pattern come up and the little X mouse cursor appear.. like there were… possibilities.
    • blackhaz 3 hours ago
      I am amazed to discover that Xfce of that era was so CDEsque: https://www.linux.co.cr/desktops/review/2000/xfce-3.3/help.h...
      • ch_123 2 hours ago
        It was originally created as a CDE clone (thus the original name "XForms Common Environment")
    • guenthert 3 hours ago
      That would have been then already some kind of anachronism. 8MiB RAM was workable (but only barely so with X11) in the early nineties. Late nineties 64MiB or more were common.
    • hnlmorg 4 hours ago
      I doesn’t feel like that long ago when I built a swarm of Arch Linux based thin clients which PXE booted from a SLES DHCP & NFS host.

      That was probably around 2010 or 2015.

      Those images had to run on a thin client with 512 MB RAM.

      I think I chose XFCE as the DE.

      • forinti 3 hours ago
        In college we had a network of Sun workstations and some of the machines had only 8MB of RAM, IIRC. This was in the 90s.

        Then again, the X desktop was really minimal and I would use them mostly to code in C using a terminal.

    • daitangio 3 hours ago
      Me too, but I was able to do it around 1995-1996 :) Also remember Windows95 can boot with 4MB of RAM, and was decent with 12MB.
      • adrian_b 3 hours ago
        Windows95 was decent even with 8 MB, on a 66 MHz or 100 MHz 486 CPU.

        With either 4 MB or only a 386 CPU, it was definitely crippled, making an upgrade not worthwhile.

        • actionfromafar 2 hours ago
          Windows 95 on a 386 CPU with enough RAM was alright. Not fast but very useable.

          https://youtu.be/Pw2610paPYM?t=72

          But most 386 didn't have 8+ megabytes, and some 386 had a 286 like data bus, making it even slower. (386SX)

    • stavros 3 hours ago
      My first PC had 16 MB of RAM, which later obviously became too slow to be usable. I remember I had to wait around a minute for Fallout to load a level, which you had to do fairly frequently.
      • riedel 2 hours ago
        I remember buying a bulky external 2MB RAM extension (I think I bought another 2MB) before that for my Amiga 500 running a full desktop OS already on 512k 'Chipmemory' using it mostly to actually as a TempFS to accelerate loading. That was beginning to mid 90s, I guess. But running netbsd on the Amiga meant that you would already at that time need 16MB of RAM and a CPU with an MMU as well as an HDD (my friend across the street did that with his A1200 I think I remember). You would only do it if you wanted more networking beyond BBS I guess.
    • hsbauauvhabzb 3 hours ago
      I don’t know how resolution maps to ram in x11 but I assume at least one byte per pixel. Based on that assumption, there’s no chance you’d even be able to power a 4k monitor with 8mb of ram, let alone the rest of the system.
      • PaulRobinson 1 hour ago
        Correct, 4k is very modern by these standards. But then I'm old, so perhaps it's all about perspective.

        Back in the days when computers had 8MB of RAM to handle all that MS-DOS and Windows 3.1 goodness, we were still in the territory of VGA [0], and SVGA [1] territory, and the graphics cards (sorry, integrated graphics on the motherboard?! You're living in the future there, that's years away!), had their own RAM to support those resolutions and colour depths.

        Of course, this is all for PCs. By the mid-1990s you could get a SPARCstation 5 [2] with a 24" Sun-branded Sony Trinitron monitor that was rather more capable.

        [0] Maxed out at 640 x 480 in 16-colour from an 18-bit colour gamut

        [1] The "S" is for Super: 1280 x 1024 with 256 colours!

        [2] https://en.wikipedia.org/wiki/SPARCstation_5

      • p_l 2 hours ago
        This was the main driver of VGA memory size for a time - if you spent money on 2MB card instead of a 1MB, you could have higher resolution or bit depth.

        if you had a big enough framebuffer in your display adapter, though, X11 could display more than your main ram could support - the design, when using "classic way", allowed X server to draw directly on framebuffer memory (just like GDI did)

      • direwolf20 1 hour ago
        X11 was designed to support bit depths down to 1 bit per pixel.
      • argsnd 3 hours ago
        Presumably every pixel is 32 bits rather than just 8. So the count starts at 33.2MB just for the display.
        • stavros 3 hours ago
          It is now, but back then it was 1 byte, with typical resolutions being 800x600. There were high-color modes but for a period it was rare to have good enough hardware for it.
          • cout 2 hours ago
            I have run x11 in 16-color and 256-color mode, but it was not fun. The palette would get swapped when changing windows, which was quite disorienting. Hardware that could do 16-bit color was common by the late 90s.
            • p_l 2 hours ago
              Fun thing - SGI specifically used 256 color mode a lot, to reduce memory usage even if you used 24bit outputs. So long as you used defaults of their Motif fork, everything you didn't specifically request to use more colors would use 256 color visuals which then were composited in hardware.
            • actionfromafar 2 hours ago
              Much better to stick to 1 bit per pixel. :-)

              Like in Sun SPARCStation ELC. No confusing colors or shades.

              • zozbot234 2 hours ago
                1bpp (at low resolution) is still relevant today on epaper screens, though some of them now allow for shades of grey or even color.
                • t-3 1 hour ago
                  Most aren't all that low res either... 300dpi is standard.
              • b112 2 hours ago
                But what if it's a UTF8 bit? Then it'd be 2 bits.

                Which proves time travel exists, all those "two bits" references in old Westerns.

        • hsbauauvhabzb 3 hours ago
          Damn pixel bit-depth bloat!
  • virajk_31 9 minutes ago
    Yes, 200MB RAM without any non-essential apps (not really useful unless for a specific use case).
  • Imustaskforhelp 4 hours ago
    If someone wants really low ram consumption for a desktop. They should try out tinycorelinux which I have ran the whole system in <25/20 MB of ram from its most minimal option.

    It's truly the most minimalist gui option just out there. It uses flwm & there own iirc very minimalist xorg server but most apps usually work

    The one issue I have is that I can't copy paste text or do some simple stuff like moving my mouse on some text but aside from that, Tinycorelinux's pretty good

    • eth0up 4 hours ago
      Can your "one issue" be tweaked by adding more RAM and allocating it thusly?

      I'm using Void with 24gb ddr5 and frequently get system freezes during high productivity. Browser tabs in the background are often contributors, but working with openshot or odb crashes often.

      I have several old nuc's and I might try tinycore on one. What do you or most others use it for, primarily?

      • Imustaskforhelp 4 hours ago
        I am not sure how my one issue can be fixed. It seems to be fundamentally an issue of their minimalist xorg server itself but I am pretty sure that there must be a way

        > I'm using Void with 24gb ddr5 and frequently get system freezes during high productivity. Browser tabs in the background are often contributors, but working with openshot or odb crashes often.

        Kdenlive's' pretty good for what its worth and I use Archlinux/cachy on an 8 gig system and browser tabs aren't that often atleast in here

        > I have several old nuc's and I might try tinycore on one. What do you or most others use it for, primarily?

        I used it to revive my 15 year old laptop and even ran complete modern firefox on it (its specs are 1 gigs 32 bit ram simple mini laptop) and ran wifi and ran firefox and ran pomodorokitty on it and I can sort of treat it as a second monitor

        It's battery is removable so I am gonna change its battery as currently the setup takes time to install and I have to install it everytime I open/it shuts down which can happen quite a lot if I don't have it plugged in so currently its shutdown for over a month but I really liked the tinkering I did with when I ran pomodorokitty on it

      • zozbot234 2 hours ago
        If the system totally freezes such that you can't even ssh in, that's just flaky hardware and you should replace it.
  • giamma 4 hours ago
    It used to be like that, computer had limited resources and desktop environments were light. Then at some point RAM became less and less of an issue, and everything started to get bigger and less efficient.

    Coyuld anyone summarize why a desktop Windows/MacOs now needs so much more RAM than in the past? is it the UI animations, color themes, shades etc etc or is it the underlying operating system that has more and more features, services etc etc ?

    I believe it's the desktop environment that is greedy, because one can easily run a linux server on a raspberry pi with very limited RAM, but is it really the case?

    • zozbot234 2 hours ago
      The web browser is the biggest RAM hog these days as far as low-end usage goes. The browsing UI/chrome itself can take in the many hundred megs to render, and that's before even loading any website. It's becoming hard to browse even very "light" sites like Wikipedia on less than a 4GB system at a bare minimum.
    • marhee 2 hours ago
      > Coyuld anyone summarize why a desktop Windows/MacOs now needs so much more RAM than in the past

      Just a single retina screen buffer, assuming something like 2500 by 2500 pixels, 4 byte per pixel is already 25MB for a single buffer. Then you want double buffering, but also a per-window buffer since you don't want to force rewrites 60x per second and we want to drag windows around while showing contents not a wireframe. As you can see just that adds up quickly. And that's just the draw buffers. Not mentioning all the different fonts that are simultaneously used, images that are shown, etc.

      (Of course, screen bufferes are typically stored in VRAM once drawn. But you need to drawn first, which is at least in part on the CPU)

      • torginus 1 hour ago
        Per window double buffering is actively harmful - as it means you're triple buffering, as the render goes window buffer->composite buffer->screen, and that's with perfect timing, and even this kind of latency is actively unpleasant when typing or moving the mouse.

        If you get the timing right, there should be no need for double-buffering individual windows.

      • zozbot234 2 hours ago
        You don't need to do all of this, though. You could just do arbitrary rendering using GPU compute, and only store a highly-compressed representation on the CPU.
        • marhee 1 hour ago
          Yes, but then the GPU needs that amount of ram, so it's fairer to look at the sum of RAM + VRAM requirements. With compressed representations you trade CPU cycles for RAM. To save laptop battery better required copious amounts of RAM (since it's cheap).
    • flohofwoe 3 hours ago
      > is it the UI animations, color themes, shades etc etc or is it the underlying operating system that has more and more features, services etc etc ?

      ...all of those and more? New software is only optimized until it is not outright annoying to use on current hardware, it's always been like that and that's why there are old jokes like:

          "What Andy giveth, Bill taketh away."
      
          "Software is like a gas, it expands to consume all available hardware resources."
      
          "Software gets slower faster than hardware gets faster"
      
      ...etc..etc... variations of those "laws" are as old as computing.

      Sometimes there are short periods where the hardware pulls a little bit ahead for a few short years of bliss (for instance the ARM Macs), but the software quickly catches up and soon everything feels as slow as always (or worse).

      That also means that the easiest way to a slick computing experience is to run old software on new hardware ;)

      • creshal 2 hours ago
        Indeed. Much of a modern Linux desktop e.g. runs inside one of multiple not very well optimized JS engines: Gnome uses JS for various desktop interactions, and all major desktops run a different JS engine as a different user to evaluate polkit authorizations (so exactly zero RAM could be shared between those engines, even if they were identical, which they aren't), and then half your interactions with GUI tools happens inside browser engines, either directly in a browser, or indirectly with Electron. (And typically, each Electron tool bundles their own slightly different version of Electron, so even if they all run under the same user, each is fully independent.)

        Or you can ignore all that nonsense and run openbox and native tools.

        • torginus 1 hour ago
          Which is baffling as to why they chose it - I remember there being memory leaks because GObject uses a reference counted model - cycles from GObject to JS then back were impossible to collect.

          They did hack around this with heuristics, but they never did solve the issue.

          They should've stuck with a reference counted scripting language like Lua, which has strong support for embedding.

        • burner420042 1 hour ago
          A month with Crunch Bang Plus Plus (which is a really nice distribution based on Openbox) and you'll appreciate how quick and well put together Openbox and text based config files are.
        • zozbot234 2 hours ago
          COSMIC is gaining ground as a JS-free alternative to current desktops, so hopefully you won't be limited to openbox and such.
          • creshal 1 hour ago
            Openbox isn't limiting me, Wayland still has no advantages for what I do with desktops.
    • roywashere 3 hours ago
      I am wondering if, with memory and storage prices skyrocketing, there will be more effort on making computing use less resources?
      • t-3 1 hour ago
        Unlikely. If you can't afford RAM, how can you afford the SaaS contracts that keep devs employed?
    • anonnon 2 hours ago
      They typically also need GPU acceleration, these days, and that can be an even bigger bottleneck, with the drivers often not supporting older cards.
  • solaris2007 1 hour ago
    A long time ago the power supply blew out in the machine I played Counter Strike: Source on and I was a teenager just barely 16 with no money so I couldn't replace it.

    I was able to keep in touch with my drug dealers and my girlfriend's friends (who were also all super hot) which was very important to me at that age, in an environment where you really needed a car or people who had cars to do anything with anyone worth doing anything with.

    I got OpenSolaris booted on a Pentium II box that had 384mb of RAM then ran Openbox and a communications suite of SILC, IRC, Pidgin, Finch (a text frontend to libpurple), and some XMPP+OTR clients -- all in Solaris Zones to not get my shit wrecked by the same RCE exploits I was using against other Pidgin users (which seemed to be as numerous as exploits for the official AIM client). This was before Facebook.

    Solaris Zones gave me that feeling of power over software that Qubes enthusiasts like to talk about, similar dopamine+endorphin flow to being a military dictator of a 3rd world country. Shit was so cash.

    Thanks to Unix' elegance, I still had a life until moved enough herb to assemble another box I could run Counter Strike: Source (on FreeBSD, Cedega for the win) on.

  • OsrsNeedsf2P 4 hours ago
    While this is cool, it all goes out the window the minute you run any app
    • janmalec 4 hours ago
      Exactly. The issue today is that even if you optimize your OS and DE to be very memory efficient, it matters very little as soon as you open a modern web browser. And without a modern web browser a big part of the online experience is broken.
      • creshal 2 hours ago
        Eh, kinda. Work forces me to have Jira, Confluence, Gitlab, Copilot, the other Copilot formerly known as Outlook, the other other Copilot formerly known as Teams, as well as Slack of course, and a dozen other webslop apps open… and it still all fits in <8GB RAM.

        Which is a lot worse than the <1GB you'd get with well-optimized native tools, but try running Win11 with "only" 8GB RAM.

      • bandrami 4 hours ago
        Beautifully, blissfully broken
    • desdenova 1 hour ago
      Running apps is what RAM should be used for, not wasted on the base system.
  • mono442 4 hours ago
    At the end of the post there is a comparison of ram usage of different desktop environments and the used ram is reported differently by every tool. So what exactly is being here measured as the used ram?
  • inatreecrown2 3 hours ago
    Running Alpine Linux with a minimal window manager gives me similar RAM usage, about 150MB
  • fredsted 3 hours ago
    Cool post. So much could be done on a couple hundred megabytes of ram back in the day, with spinning rust as storage to boot!
  • heraldgeezer 3 hours ago
    Cant wait to boot up my Windows 11 total bloat machine at home and work

    I kinda wanna try linux again...

  • joecool1029 4 hours ago
    Woulda been a nice article if it covered the real reason xlibre’s founder got fired from RH, Enrico’s had a long history of pissing people off and posting cringe on main: https://www.theregister.com/2021/06/11/linus_torvalds_vaccin...
    • Mashimo 4 hours ago
      Odd little rant suddenly appears in the middle of it :D

      Here is how I set up minimal Desktop, WATCH 4 VIDEOS ABOUT HOW DEI IS KILLING OPEN SOURCE PROJECTS, and here is my loader.conf ...

    • bboozzoo 4 hours ago
      Why should I care though?
      • Mashimo 4 hours ago
        Could say the same thing about why it's in the blog post.

        You don't have to care at all. It's just an odd blog post that just from technical intro to rant about DEI and censorship and back to technical details. And joecool1029 just provides more context to what was said in the blog post.

    • anthk 3 hours ago
      Indeed. Xenocara would be a better bet. But the more these people have to collaborate with different people, the more empathy they will need.

      https://git.sr.ht/~rabbits/fashware

      About Nemo (Fran J. Ballesteros from plan9/9front) he has half as encuse as he grew up (for sure) under the Francoist regime probably from the loaded family side, and, thus, he had to swallow tons of literal extreme right wing ideology even at school (Franco's regime). But the point on being a conspiranoid about the Covid... I would expect more sanity from the mindset from a guy perfectly abled in algoritmics, math and by proxy, science. Echo chambers create these kinds of idiots even on really smart people (the far right in Spain used cult like mechanics too), and I'm sure Fran changed a bit over time for the better.

      On the Cosmopolitan/APE person, I remind you that if you want to get back to Reissanance times, I'm a Spaniard, and thus, your whole ideology pales against the Iberian Humanism from the School of Salamanca, where at the time we were the Enlightened ones and you were just a bunch of WASP uneducated hicks living in filthy villages in the middle of Europe.

      Back to 9intro, even if you dislike ~nemo, 9intro it's still worth to learn programming on 9front, it's a great book to share and learn from. If would be a waste to ditch it just because some old fart doesn't get into the times.

      EDIT: ok, now I see ~nemo it's not that old, so a plausible indoctrination from the Francoism wouldn't apply there; but I'm pretty sure being a conspiranoid on Covid doesn't look like the normal socialization out there.

  • ryan-c 3 hours ago
    opens blog post

    sees lunduke

    closes blog post

    • undeveloper 3 hours ago
      seriously, what's with people's love of this guy? besides politics, I have not seen anything that suggests engineering prowess from this guy, only "rust bad".
      • wongogue 3 hours ago
        People like his technical opinion because they like his politics. That’s the whole grift-influencer economy. If someone is good at one thing (and validates some of my views), then obviously he’s right about everything.
        • themafia 1 hour ago
          When people feel underrepresented to the point of being bullied they turn to any voice which seems to reflect even a tiny fraction of their frustrations.

          There's a real mean spirit in open source lately and a lot of it seems to revolve around political views. There's become this idea that if you and I disagree on politics then it would be impossible for us to write quality software together. It's damaged a lot of good will and cohesion that used to exist within the open source software community.

          This used to be about making free software to people so that they weren't abused by corporations. Now it's about pushing agendas and creating exclusion criteria. There's only one group in this scenario that benefits from this outcome.

          If you don't like Lunduke then you should recognize the factors that give rise to people like him. Unless your solution is to completely eliminate anyone who disagrees with you then your apparent mindset only furthers the problem.

          I wish we could put all this aside and just enjoy open source again.

          • ryan-c 1 hour ago
            My existence is not political. If someone doesn't think I should have rights and/or exist and/or thinks I am inferior because of who I am, then no, we cannot write quality software together.

            If someone disagrees with me on tax, foreign relations, government services, defense, etc policy, sure, we can disagree and still work together.

            What gives rise to people like Lunduke is not a simple thing, and something I don't think society fully understands.

        • dgan 2 hours ago
          Dont present our hypothesis as a hard fact. I actually think it is completely false. Not only I was never interested in his political opinions, and followed him because of his humoristic takes "Linux sucks", and not about Rust or whatever; I actually never encountered a single video before joining his "lunduke journal" where his right-wing views would be visible.

          He has made funny videos, it was fun to watch. Its kinda hard to enjoy them now after learning he s dumb as a rock and justifies killings if you are of tje wrong nationality

      • heraldgeezer 3 hours ago
        He is an influencer if you will.

        Skilled enough but the main use is as a news resource like this. The guy ion the blog would not have found out about this unless Lunduke posted about it.

        Do you understand? :)

    • heraldgeezer 3 hours ago
      For us not in the know, why is this bad?

      Is he ""bigoted"" ? :(

      • eukara 1 hour ago
        The maker of the provocative "Linux sucks" series is a bit of a troll. He's made videos on technical projects he doesn't understand (or care about) and just mocks them if they don't gel with him. As far as I can tell he doesn't really care, or if he thinks he does - his actions aren't translating well.

        How do I know? As a FOSS developer myself with a decade plus public history I also happen to know a few people running prominent FOSS projects.

        He's burned bridges for no good reason. He doesn't care.

      • Mashimo 3 hours ago
        I have no idea who he is, never heard of him. You shall not judge a book by its cover but .. he is making it hard. His video titles are:

        * Devuan: The Non-Woke Debian Linux Fork (Without Systemd)

        * NeoFetch But in Rust and More Gay

        * Chimera Linux is "Here to Further Woke Agenda by Turning Free Software Gay"

        * Are Jews the Cause of DEI in Big Tech?

        Yeah .. I did not watch a single video of his. But just from a short few seconds It's not anything I want to invest time in to see if he has a point or not. Life is too short.

        • bigpeopleareold 3 hours ago
          Whatever I might agree or disagree with, this is annoying to look at, but his stuff keeps coming up in my YouTube feed. Even it looks slightly interesting, I know it will be some rant involved about a thing not related to technology, but some developer's personal opinions on non-tech ideas. I get it - people are horrible! Sheesh!

          FWIW, probably not much, he said he had a Jewish background ... in, like, the one video I watched and eventually gave up on.

        • pilif 2 hours ago
          what's especially strange to me is that in the more distant past, he was a pretty normal guy - at least as normal as any other linux user. Heck, he had a super great podcast (Linux Action Show).

          Something changed in the 2014ish time-frame when it got more and more politically extreme.

        • heavyset_go 1 hour ago
          Now I want to make a Woke Linux to drive this guy insane, the CoC alone will make his face melt
        • hsbauauvhabzb 3 hours ago
          > NeoFetch But in Rust and More Gay

          apt-install --fuck-yes gay-rust-neofetch

          I’ll look to migrate to chimera shortly, but only if it includes gay neofetch.

        • stevefan1999 2 hours ago
          * Are Jews the Cause of DEI in Big Tech?

          ...errrrrrrrrrrrrr, plot twist, he is a jew himself, or at least he claimed he is.

      • ryan-c 2 hours ago
        He's harassed people, including one of my friends.
  • znpy 2 hours ago
    nice, now open a web browser and any modern website /s
    • themafia 1 hour ago
      It should run very quickly given that there are few things competing with it for resources like CPU cache space.

      It's like "your car is going to get dirty why even wash it?"

    • gambiting 1 hour ago
      I'm sure Lynx would be fine.
      • Mashimo 1 hour ago
        Been over a decade since I used a terminal browser, how do they handle modern websites with javascript?
        • gambiting 42 minutes ago
          They don't. Javascript is completely unsupported.
  • werdl 4 hours ago
    oh wow! this looks cool, let me click.

    annnd its another XLibre shill proselytising.

    • bmacho 1 hour ago
      If you often click these types of articles and they all say XLibre, then it is probably the best tool for what you want to achieve.
    • themafia 1 hour ago
      Saying shill implies XLibre is some kind of scam he's trying to trick you into, where as, if you don't like it, you're absolutely free to not use it.

      Or, what's the popular line in this scenario, "if you don't like it go make your own?"

      I'm sorry.. I just find the reliable cult of software personality on HN to be a little frustrating.

    • heraldgeezer 3 hours ago
      For us not in the know, why is this bad?
      • jabwd 1 hour ago
        Even ignoring all the politics and crazy stuff from the "maintainer"; most of their contributions were just shuffling code around and causing a lot of breakage. The typical "but this looks nicer so its better" type of programmer, not the type of code I'd rely on personally.
        • bmacho 32 minutes ago
          > Even ignoring all the politics and crazy stuff from the "maintainer"; most of their contributions were just shuffling code around and causing a lot of breakage.

          This take was stupid when it was just a baseless claim by X11/RH (the very people that declare that they want to kill X11, don't want to put new features in X11 or fix bugs, and don't accept code from people on the right). This take has been double stupid since Enrico has released XLibre and it is indeed better than Xorg.

      • t-3 1 hour ago
        Xlibre has no CoC. Allowing such people to enter our hallowed halls would be a perverse degredation of these storied institutions. The CoC-less are quite obviously not ready to do serious work or they would have a CoC.
      • desdenova 1 hour ago
        It's nazi shit