Skip to content

Trying to squeeze as much performance as possible from an old laptop

Hi guys. I'm somewhat newish to arch and I want to know what I can do to squeeze every drop of performance out of this laptop. I don't really know where to start or what to do. Currently I have i3 WM installed and that's what I've been using for the last couple of months, but I've only been using this laptop to watch youtube videos but I want to start learning how to program and make some dumb games. I'm trying to use the godot game engine and this thing is really sluggish so I want to make sure I'm doing all I can to make it perform better.

26 points24 comments
Open on Reddit
About this post
Posted
Archived
Score
26 · 100% up
Kind
Text
ID
e45kai

Author

18
posts
130
comments
1
media
View profile

28 comments

There are some things you can optimize:

  1. Custom kernel; Compile a kernel specifically for your needs (maybe with patches)
  2. Use programs with small footprints and disable unnecessary services
  3. Make sure to make use of GPU acceleration whenever possible (and make sure that you're making use of the driver's features)
17 points
  1. Compiling a custom kernel sounds like a difficult project but I'll look into it.
  2. how do I look at a list of all running services and how do I know which ones to disable?
  3. I think I'm already doing that maybe.

thanks for the help

6 points

This should explain the basics of the arch-way:https://wiki.archlinux.org/index.php/Kernel/Arch_Build_System

You can take a look at rt (real-time) capabilities and other kernels,like ck,and schedulers.

For the services: take a look at systemd,especially systemd-analyze can help you to find services that take long to load (and whether you need them or not depends on your use case).

And for the GPU: there can be a difference in performance between x.org and Wayland sessions (especially due to xwayland-overhead),sometimes the de makes a difference,too (but as you're using i3,that shouldn't apply). If you're using x.org,take a look at options for your xorg GPU driver. Also, depending on your GPU,there are maybe different drivers available (mostly open/closed source ones for amd/Nvidia and the Intel Iris/i965),also make sure to use the right renderer (vulkan is usually the better choice) and you may even have the option to use the new "aoc" shader compiler. Furthermore,build-optimization for your output (setting the right arch for the compiler,link time optimization,etc.)

9 points

Given that in-browser youtube videos are often not hardware accelerated on linux, it might be a good idea to look into a method of opening (youtube) videos in mpv quickly (e.g. via the firefox extension, or qutebrowser userscripts, if you happen to use qutebrowser)

3 points

Perhaps try win browser through wine ? Haven't tried yet, but perhaps wine can overcome the acceleration..

1 points

I haven't encountered these problems since the death of flash and times of fglrx/old nvidia drivers and can't confirm that, though I have to admit that I can't speak for 4k (yet). It depends on the browser in combination with sometimes required tweaks to get as many things accelerated as possible. Sure, JavaScript is still a factor,but with some adblocking and paying attention to the amount of tabs,it should be ok. More details on the hardware would be helpful for some troubleshooting:) Oh,and for other programs to open YouTube videos: Kodi (aka xbmc).

1 points

You might not like this suggestion, but trying to program (especially learning) on an old laptop is sort of like trying to learn to drive. On a stick, on a truck from 1945, with a missing tire. Technically, you can probably pull it off, but it's going to be a miserable experience.

The lowest end modern laptops simply run circles around the highest end laptops from ten years ago. Seriously. If you work for 20 hours at a part time minimum wage anything, you'll have enough cash to get a semi-decent laptop

Old laptops can be great for certain tasks; they make great print & file servers, vpn access points, test boxes for TFTP booting, etc etc. But the moment you start needing to do anything graphical, and especially anything that involves compiling, you're in for a world of hurt. Linux may be far more effective of a platform for low end and old hardware, but it's not going to magically take your broken down truck-of-a-laptop and turn it into a Ferrari.

15 points

Your semi-decent laptop is at a bad price:performance ratio, especially for a refurb device...

Consider looking into thinkpads when searching for refurbs.

2 points

I wasn't suggesting that particular model is the very best bang for buck. Naysaying is way easier than doing actual research, you're absolutely welcome to offer a few suggestions of your own.

3 points

I'm using a medium end laptop that's 8 years old, running Arch and Godot on it and she is running great. I was very pleasantly surprised with the short boot time compared to the windows 7 that use to be on it. Happy I made the change from Windows to Linux, never going back to Windows for my personal use.

3 points
unknown author

Deleted before we saved it.

1 points

Well the good thing about arch is you only install what you need for your use case. Compared to Ubuntu manjaro etc which gave a bunch of services and packafes which you may never use of need

3 points

You don't say what make/model laptop you run, could you please?

I ran 12 year old Thinkpads T60 and T60p for fun maybe 3 years ago. Both ran Arch and gnome ok. IIRC, it was 2-3GB ram and Core Duo CPU's. I recall Firefox was a bit laggy.

2 points

HP 15 Notebook. This one to be exact

1 points

I bet that laptop will even run gnome adequately. If you try, use top/htop to monitor your memory, cpu utilization, and swap usage.

Your laptop costs maybe $250, right? For that, I picked up a far better IMO near mint ebay Thinkpad T450s (i5/12GB/FHD) laptop. Runs any DE and any productivity software effortlessly.

Good luck and welcome to Arch.

2 points

That's a terrible, terrible CPU that shouldn't have been sold. You can get (used) laptops for <$100 on Ebay that perform about 3x as well, like an old Fujitsu Lifebook with an Arrandale-era CPU, or a good Thinkpad for $150-200.

I honestly think it does not make sense trying to squeeze much more out of that potato if you want a good time. - As a fallback beater device? maybe.

1 points

Try this on a Latitude D430 (circa 2008)!

That's what I've been trying this on. So far, so good, although admittedly I'm not doing anything outside of actually running it. I'll see what I can make it do when I get it a bit more stable,

1 points

I run a tiling window manager on a 10yr old thinkpad. I wanted to run godot too, but my onboard intel video isn't supported by the vulcan drivers godot requires. Honestly my computer is usable, but trying to work on or use modern software is a pain. I barely have enough ram to run the keybase client or anything else made with heavy frameworks like electron.

2 points

If it is gameplay that is sluggish, I have no idea.

If compiling is sluggish, check your makefiles. No need to compile under -O3 for test runs. -Og will compiler faster and product a binary that plays nicer with debuggers. Also, make sure your makefiles are tracking build dependencies properly. No need to re-compile binaries you haven't touched. Finally, use make -j to do a parallel build. Compiling is pretty independent unless you are doing crazy optimization levels, so it should be perfect speed up to your number of cores, hopefully.

2 points

Overclock everything you can to a point where it is still stable (i know this is a old topic)

that includes:

-cpu (most gains will be seen from this), if it is a socketed cpu and the bios is not locked upgrade to the fastest cpu for the particular socket

-dedicated gpu if there is one ( this can yield solid performance improvements), if possible overclock the pci-bus

-overclock your ram (this will only yield gains if the cpu is not feed according to its potential)

-overclock your Fronsidebus ( this will increase the data flow between ram and cpu)

Keep your drivers up to date and disable not needed functions. Installing a SSD is a must as far as i am concerned.

Enable superfetch on windows.

1 points

Thanks. This was a while ago and I got a Thinkpad now but I'm still gonna see if I can do some of this for that old HP. I'm was planning on using it to try out nixOS. What is superfetch?

1 points
unknown author

Deleted before we saved it.

1 points

you can try jwm to use for a WM. You can chose the OpenGL option in Godot which uses less resources than Vulkan. You need to find out what services are running that you may not need and shut them down. For my development since I use Visual Studio Code, I found that jwm works better for me than i3 since I'm not running a lot of terminal sessions and like VS in full screen on a desktop. I can do the development all on the CLI but it doesn't seem to save me that much time.

1 points

If it feels 'really sluggish' then don't expect miracles by fine-tuning your laptop. Just brainstorming here:

  1. Use a tool to auto-adjust priorities. I use 'Ananicy', for most apps/Godot, and 'Lutris' can use 'gamemode' for games (or Godot if you want). Not sure how to use 'gamemode' manually, tho.
  2. There are several settings in Godot to update the editor screen less often, sleep longer when nothing happens, etc . You better ask in the r/godot - I cant remember where/what in the editorsettings.
  3. In the long run: consider plugging a little Arm stick (or even your phone) into the laptop.
    I've seen Godot compiled for Arm linux at least, and for an android stick/phone you can stream the android screen to the laptop with low compression (with 'scrcpy' over usb2). someone are working on a webassembly Godot editor, that could be streamed, but with a little setup and browser plugins, you can totally revive an old laptop with a window streaming a browser-session, video or whatever fancy game from a cheap Android stick/mobile. Old slow servers (prob. need 264 hw-dec) can benefit too - even stream audio to usb-stick/mobile speaker, turning server into a desktop :p
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.