Skip to main content

Questions tagged [optimization]

The tag has no usage guidance.

22 questions with no upvoted or accepted answers
3 votes
0 answers
2k views

Compile a library aiming to reduce size as much as possible

I have to 'squeeze' all the needed code to run ldaps on an embedded system. So the 3 MiB of lybcrypto and almost 700KiB of libssl are way too much. I'm now experimenting on ldapsearch because reading ...
DDS's user avatar
  • 333
2 votes
0 answers
396 views

How do backreferences slow down regular expression search?

Let's say I have a text file with 20 chars per line like this: wertzuiopasdfghjkl< asdfghjkl<yxcvbnm,.- <yxcvbnm,.-123456789 1234567890QWERTZUIOP QWERTZUIOPASDFGHJKL< and so on ... and ...
Philippos's user avatar
  • 13.5k
2 votes
0 answers
332 views

Is there a linux interface for arm cp15 register access?

For performance optizimization I should be able to switch bits in ACTLR register of the cp15 unit. I've done stuff like this before in bare metal projects, but from linux user space I can't execute ...
Philippos's user avatar
  • 13.5k
2 votes
0 answers
215 views

selinux user add becoming progressively slower

I've written a service that configures a machine with selinux users who can manage a single port. I'm trying to pre-seed that machine with 1000 users, but selinux is crawling to a halt around user ...
Peter Turner's user avatar
  • 1,694
2 votes
0 answers
458 views

Ubuntu Bootchart - How do I actually interpret this chart?

I'd like to start obsessing over optimizing my Ubuntu boot time, but I've searched online for multiple days—and only have a vaguely more coherent idea of what I'm looking at. Here's my bootchart. I ...
AmagicalFishy's user avatar
1 vote
0 answers
190 views

Pipewire using 2x processes when idling

I recently had my BT headphones stutter and cut out and realized that during CPU intensive processing, pipewire is dropping frames. My overall goal, then, is to streamline processing to make that ...
Duane J's user avatar
  • 123
1 vote
0 answers
351 views

Can't compile linux kernel with -Og/-O0 option for debugging purpoces

Having custom hardware running embedded Linux (OpenWrt) like a charm. CPU - is IMX6ULL (ArmV7) so it is supported by Jlink to debug over JTAG interface. Starting GDB server and step by step debugging ...
user3583807's user avatar
1 vote
0 answers
532 views

Is jq internal sort slower than GNU sort?

While filtering through this json file I did a benchmark and found out utilizing jq's internal sort and unique method is actually 25% slower than sort --unique! Command Mean [ms] Min [ms] Max [ms] ...
Zeta.Investigator's user avatar
1 vote
0 answers
54 views

How can I frequently update a file without harming my disk?

I've got an i3 install on a laptop with an SSD. Currently I have it configured to save the WM layout on many different events. The tool that I'm using to do this is built on Python, and I'm just ...
wknr's user avatar
  • 11
1 vote
0 answers
415 views

how do I emerge gcc 9 on gentoo without creating too many processes?

I am stuck on building gcc 9 with lto USE flag, because it is creating over 30 lto processes when I try to do so. At this point, I have to reboot my PC. I think it may have to do with the new lto ...
jeferson lemos's user avatar
1 vote
1 answer
372 views

How do you specify a blkparse format specifier that also suppresses summary

When using the live mode, I do: blktrace -d /dev/sdc1 -o -|blkparse -f '%a %c' -i - I just want to limit the displayed data to 'action' and 'cpu id'. Instead I get the summary and all the usual ...
linuxGuy's user avatar
1 vote
0 answers
153 views

VNC rendering is all fragmented

I have my VNC server so configured, that it requires me to establish an ssh tunnel and connect to it on localhost:1 with my vncviewer. Now the connectivity seems to work fine but the rendering of the ...
stdcerr's user avatar
  • 2,079
1 vote
0 answers
893 views

What are the consequences of disabling nmi_watchdog?

My aim was to improve battery life for my laptop. I have already applied some advised modifications like enabling ALPM, and adding pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1 at grub ...
Stephane Rolland's user avatar
1 vote
1 answer
3k views

Build the Linux kernel without gcc optimization

I follow one of many tutorials found on Google results to build and debug the Linux kernel with gcc and kgdb/gdb. And I end up by discovering that is all waste of time. Since I can't compile the ...
Joe Smith's user avatar
0 votes
0 answers
44 views

Optmization and tuning Linux Server (Mediaserver)

I rebuilt a server, specifically a mediaserver, based on debian 12 stable (kernel 6.1). CPU: i7-6700K(no overclock) RAM: 16GB DDR4 (dual channel) NIC: 2 of 2.5Gbit (bonding balance-tlb) (MTU bond0: ...
vincenzogianfelice's user avatar

15 30 50 per page