CPU Optimizations


Recommended Posts

From a few different systems got access to....

real 0m30.470s

user 0m30.406s

sys 0m0.024s

Intel? Xeon? CPU X3360 @ 2.83GHz (4 Cores)

8GB Memory

real 0m22.688s

user 0m22.677s

sys 0m0.000s

Intel? Core? i5-2320 CPU @ 3.00GHz (4 Cores)

16GB Memory

real 1m19.754s

user 1m19.653s

sys 0m0.004s

Intel? Atom? CPU D2550 @ 1.86GHz (2 Cores)

cache size : 512 KB

4GB Memory

What's the difference between Funtoo and Gentoo?

Quote from funtoo.org

Funtoo Linux features native UTF-8 support enabled by default, a git-based, distributed Portage Tree and funtoo overlay, an enhanced Portage with more compact mini-manifest tree, automated imports of new Gentoo changes every 12 hours, GPT/GUID boot support and streamlined boot configuration, enhanced network configuration, up-to-date stable and current Funtoostages, all built using Funtoo's Metro build tool. We also offer Ubuntu Server, Debian, RHEL and Fedora-based kernels.

IOW, Optimized "from scratch" gentoo, git portage, currrent is based on ~x86 and ~amd_64 things like that

Hi All,

I have been playing around with some Compiler Optimizations in the Linux Kernel. I want to know what your results are if you run this in a terminal.

Whats your Hardware and whats your kernel version?

time echo "scale=5000; a(1)*4" | bc -l[/CODE]

Care to elaborate on why? You're basically benchmarking bc and how good your compiler is. The kernel (or OS in general) is going to have little to no effect on the result.

[b]Hardware[/b]

  • Sun UltraSparc T1 (Niagara) CPU clocked at 1.0 GHz
  • 8 GB of RAM

The T1 is a very interesting CPU architecture (terrible single threaded performance, god awful floating point, but great integer throughput). How'd you get your hands on one?

Care to elaborate on why? You're basically benchmarking bc and how good your compiler is. The kernel (or OS in general) is going to have little to no effect on the result.

The T1 is a very interesting CPU architecture (terrible single threaded performance, god awful floating point, but great integer throughput). How'd you get your hands on one?

I disagree. I have already shown that compiling the latest 3.9 Kernels with CPU specific optimizations yeilds better results than the 3.8 Kernels. Also In the early part of this thread the two different Kernels were producing DIFFERENT number streams.

I disagree. I have already shown that compiling the latest 3.9 Kernels with CPU specific optimizations yeilds better results than the 3.8 Kernels. Also In the early part of this thread the two different Kernels were producing DIFFERENT number streams.

The problem with this conclusion is that your results come from many different systems each with a different configuration. They may have different kernels, but different hardware or execution environment may be the cause of the difference.

To actually compare these results you would need to run your tests on the same hardware with the same configuration (OS, connected peripherals, etc...) and only vary the kernel version.

Run repeats to get more reliable timings, with both cold and warm starts, and only then could you start to draw any conclusions. At the moment all you can really say is that computer's owned by different people produce different results when calculating Pi and take different lengths of times to do so.

Also what do you want to measure? If you are just measuring the performance of a single process to complete a result then your results could be skewed. For example, you may miss an overall decrease in system performance if say the different compile optimisations increase the code size and make the task scheduling code too large to fit in the cache. By running a single high load application you may not hit this issue often enough to observer performance degregation. But in, say a webserver, multiple high load processes may end up performing worse due to this "optimisation". So you will need to run different tests to see the impact of any optimisation.

Of course this all depends on the hardware you are running on too, so you will need to run a benchmark on the different hardware with the same configurations you tested the first bit of hardware on.

In short, benchmarking performance is difficult. But, specifying what you mean by performance (latency, average completion time, total completion time, lateness, maximum time taken) will definitely help with benchmarking.

Various tests used to benchmark the kernel:

http://kernel-perf.sourceforge.net/about_tests.php

http://lbs.sourceforge.net/

https://wiki.archlinux.org/index.php/Benchmarking

Linux Mint 14.1 live usb key

Intel? Core? i7-3770K CPU @ 3.50GHz, 4800 MHz

real 0m13.728s

user 0m13.713s

sys 0m0.000s

Same CPU (though running at 3465.49Mhz) and Linux...and running in VirtualBox

real 0m17.286s

user 0m17.125s

sys 0m0.140s

The T1 is a very interesting CPU architecture (terrible single threaded performance, god awful floating point, but great integer throughput). How'd you get your hands on one?

You can buy Sun Fire T2000's on ebay for $400-800. While their single threaded performance is truly awful (and apparently floating point as well), they run heavily multithreaded applications very well. I have been impressed with the Java and Qemu performance in particular. I can build i386, AMD64, and ARM packages faster in qemubuilder on that machine than natively on their respective architectures. (That is comparing the 1.0 GHz T1 to a 2.4 GHz Core 2 Quad for i386 and AMD64 builds. The ARM machine is slow enough that it's not really a fair comparison.)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • BleachBit 6.0.1 Beta by Razvan Serea When your computer is getting full, BleachBit quickly frees disk space. When your information is only your business, BleachBit guards your privacy. With BleachBit you can free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean thousands of applications including Firefox, Microsoft Edge, Google Chrome, Opera, Safari, and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source. BleachBit has many useful features: Delete your private files so completely that "even God can't read them" according to South Carolina Representative Trey Gowdy. Simple operation: read the descriptions, check the boxes you want, click preview, and click delete. Multi-platform: Linux and Windows Free of charge and no money trail Free to share, learn, and modify (open source) No adware, spyware, malware, browser toolbars, or "value-added software" Translated to 64 languages besides American English Shred files to hide their contents and prevent data recovery Shred any file (such as a spreadsheet on your desktop) Overwrite free disk space to hide previously deleted files Portable app for Windows: run without installation Command line interface for scripting and automation CleanerML allows anyone to write a new cleaner using XML Automatically import and update winapp2.ini cleaner files (a separate download) giving Windows users access to 2500+ additional cleaners Frequent software updates with new features Going beyond standard deletion of files, BleachBit has several advanced cleaners: Clear the memory and swap on Linux Delete broken shortcuts on Linux Delete the Firefox URL history without deleting the whole file—with optional shredding Delete Linux localizations: delete languages you don't use. More powerful than localepurge and available on more Linux distributions. Clean APT for Debian, Ubuntu, Kubuntu, Xubuntu, and Linux Mint Find widely-scattered junk such as Thumbs.db and .DS_Store files. Execute yum clean for CentOS, Fedora, and Red Hat to remove cached package data Delete Windows registry keys—often where MRU (most recently used) lists are stored Delete the OpenOffice.org recent documents list without deleting the whole Common.xcu file Overwrite free disk space to hide previously files Vacuum Firefox, Google Chrome, Liferea, Thunderbird, and Yum databases: shrink files without removing data to save space and improve speed Surgically remove private information from .ini and JSON configuration files and SQLite3 databases without deleting the whole file Overwrite data in SQLite3 before deleting it to prevent recovery (optional) BleachBit 6.0.1 Beta release notes: BleachBit 6.0.1 beta is now available for testing. This maintenance-focused release includes bug fixes, updated translations, and a range of safe enhancements. This release fixes a Windows security issue that could allow arbitrary file deletion during privileged cleaning (reported by Zeze with TeamT5). It also adds new cleaners (including a DNS cache cleaner, Claude Code, and Visual Studio Code forks), support for multiple Chrome and Edge profiles, new deep scan options for developer directories like node_modules and venv, and safer, faster file shredding. All Platforms Added cleaners for Claude Code, DNS cache, and many Visual Studio Code forks. Added support for multiple Chrome and Edge profiles. Chrome can now clean downloaded AI models. Deep Scan can optionally remove venv, __pycache__, node_modules, and .angular directories. Deep Scan is faster by skipping directories on the keep list. File shredding is safer, faster, and leaves fewer recoverable traces. Improved handling of cookies, symlinks, Unicode filenames, external processes, and configuration files. Improved Expert Mode warnings and long warning dialogs. Fixed crashes related to cleaner detection, invalid Unicode, and malformed cleaner data. Clipboard is now cleared automatically after shredding files via paste operations. Linux Added AppImage support. Added cleaners for Visual Studio Code, Codeium, Librewolf (.deb), Transmission (Flatpak), and Profanity. Improved Linux trash detection, including Snap-installed applications and mounted drives. Fixed Wayland root CLI issues and several Snap-related problems. Improved package dependencies, AppStream metadata, and desktop file handling. Fixed startup crashes when Python Requests is unavailable. Windows Fixed a security vulnerability that could allow arbitrary file deletion when cleaning with elevated privileges. Added %WindowsSystem% variable support. Improved clipboard clearing using native Windows APIs. Improved installer experience on unsupported Windows versions. Reduced installer size and improved application robustness. Fixed Unicode handling, filename anonymization, Git revision reporting, and splash screen stability. [full release notes] Download: BleachBit 6.0 | Portable | ~20.0 MB (Open Source) View: BleachBit Home page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • DriversCloud 12.1.6 by Razvan Serea With DriversCloud (formerly My-Config.com), you can explore your computer easily, safely and free. The application quickly scans your PC and identifies the hardware and software components. DriversCloud then establishes a list of the different drivers compatible with your OS and hardware. Download the drivers needed for the proper functioning of your computer. To detect your drivers, DriversCloud also displays a detailed summary of your hardware and software configuration, analyzes your BSOD, monitors in real-time your PC voltages and temperatures and lets you share your configuration online. Once the hardware components have been detected, you will be able to obtain with just a few clicks the latest drivers corresponding to the identified hardware. You can record your configuration on the site for free, and can get the corresponding URL to post the configuration to technical forums, e-mail and social networks. You can also download the detection result (the configuration) as a PDF file. To protect the user's privacy and data confidentiality, a 4-level confidentiality system was created that filters the XML marks and gives control to the user. The default level can be modified in the preferences. Using the maximum level will prevent the user from publishing his configuration and generating a corresponding PDF file. In non-connected mode, each XML configuration is stored on the server for one day (for practical reasons). However, you are given the opportunity to manually delete it. Created in 2004, and continually improved, My-Config.com has established itself on the web as a free service to PC users running Windows and Linux operating systems. The service is designed to work with the most common Internet browsers (Edge, Firefox, Chrome, Safari). Download: DriversCloud 64-bit | 20.0 MB (Freeware) Download: DriversCloud 32-bit | 18.9 MB Link: DriversCloud Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Popular Contributors

    1. 1
      +primortal
      516
    2. 2
      +Edouard
      189
    3. 3
      PsYcHoKiLLa
      148
    4. 4
      ATLien_0
      96
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!