Reddit

Subscribe to Reddit feed
All things Linux and GNU/Linux -- this is neither a community exclusively about the kernel Linux, nor is exclusively about the GNU operating system.Linux, GNU/Linux, free software...
Updated: 59 min 34 sec ago

Status of unified wayland protocol?

Sun, 2018-10-14 05:24

Few months back I had heard that there was gonna be a unified protocol rather than than the current eglstreams / GBM. but the issue has died since then. Any updates on how close are our developers to achieving unified protocol

PS. Any chances of having standard hardware acceleration protocol rather than current vaapi / vdpau / Nvidia shit / xyz.

submitted by /u/pranavtay
[link] [comments]

If the wait queue (B) in vmstat is greater than the runqueue (R), is it I/O or CPU bound?

Sun, 2018-10-14 04:46

If the runqueue is the number of processes waiting for their turn on the CPU + processes currently running, and waitqueue is the number of processes waiting for I/O, then wouldn’t B in the vmstat output being greater than R mean that there is an I/O bound, not CPU bound? I am confused because the link below says the opposite ... From http://nonfunctionaltestingtools.blogspot.com/2013/03/vmstat-output-explained.html?m=1

“If runnable threads (r) divided by the number of CPU is greater than one -> possible CPU bottleneck (The (r) coulmn should be compared with number of CPUs (logical CPUs as in uptime) if we have enough CPUs or we have more threads.) High numbers in the blocked processes column (b) indicates slow disks. (r) should always be higher than (b); if it is not, it usually means you have a CPU bottleneck”

submitted by /u/persianguy97
[link] [comments]

Mint dual boot

Sun, 2018-10-14 02:23

Hello. I just built a desktop, installed windows and wanted to install mint too. The problem is when I boot from the usb I get the message "not enough memory to load specified image". Does someone know what to do? I have 8GB of RAM.

submitted by /u/_d4viD
[link] [comments]

Netflix client for linux

Sat, 2018-10-13 21:47

I think we are missing a Linux client for Netflix. You can watch Netflix via the browser but it is impossible to download movies via the website. I don't think it would be hard for them to do, it is in principle just a HTML 5 app and they could partner up with Canonical to make a Snap package. Although I don't love Snap packages, I think it's a good way for big companies to make a splash in Linux and I look specifically to Spotify, as I think the Netflix port, when realized, would be similar to the Spotify one, and it's Snap package which works fine. What are your thoughts on this?

submitted by /u/Adutchman
[link] [comments]

How do I update my drivers.

Sat, 2018-10-13 21:15

My Stats: https://www.reddit.com/r/PCBuilds/comments/9k23oh/is_my_pc_good_decent_or_bad/

Ok so I tried playing fortnite with lutris and if I launch it it says unsupported graphics. I've tried for hours trying to figure out how to update it. If someone can help me I would appreciate it.

Notes:

I use Zorin OS.

(Also before you say your pc is too weak to play fortnite it ran fine on windows, I only switched because of a software issue and also it looks alot nicer)

submitted by /u/NerfKoga
[link] [comments]

Unix Shell Posters Re-made:

Sat, 2018-10-13 19:47

I posted this in my other Poster thread, but for some reason it didn't show, but in addition to finding that poster I spent some hours on remaking it in photoshop.

so I'm posting the re-done version I did of that poster and another very similar poster that u/aCuteLittleBox found, and posted about before.

Also included is a marvelous vi poster remade by: u/Lykelinux

https://i.imgur.com/NVeDP0d.png https://i.imgur.com/zRg3bx8.png https://i.imgur.com/xwrRQms.jpg

I also have the photoshop files for the shell posters, if anyone wants a copy PM me.

If there is any interest, I may remake the shell posters into a modern bash shell, and remove the old stuff. and rename it "Linux Shell Commands" instead.

submitted by /u/JaceTheSaltSculptor
[link] [comments]

Underclocking high-end mobile CPUs for cooler, better battery life, longer lifespan ultra-thin Linux laptops - Part 1

Sat, 2018-10-13 18:39
Preface

If you have an ultra-thin laptop with a high-end CPU, and your laptop's temperature is constantly high (>90oC) under heavy workload, this post is for you. In this wall of text, I will discuss how to underclock your high-end mobile CPU to get a much better temperature, longer battery life and better stability. The method suggested in this post could be deployed on it own or used in tandem with other power reduction method such as undervolting.

Background 1. Thermal Design Power

Both Intel and AMD, when design their CPUs, provide the Thermal Design Power -- the power corresponding to the maximum amount of heat generated by the CPU that the cooling system can cool down. When the CPU power reaches the value specified by the TDP, a protecting mechanism kicks in to reduce the power consumption (and heat) to prevent the hardware components from getting burned. The most popular mechanism is CPU clock throttling.

(To check for CPU throttle, run following command: $ journalctl | grep 'temp.*throttled')

2. CPU power consumption

The power consumption of a CPU can be described as [1]:

Pcpu = Pdyn + Psc + Pleak

While Psc and Pleak are more related to the fabrication process, Pdyn could be controlled by end user. To estimate the dynamic power consumption Pdyn, the CPU's CMOS gate can be modeled as a switch such that:

Pdyn = CV^2f (Eq.1)

where C is the capacitor, V is the voltage and f is operating frequency of the CPU.

3. The Culprit

There are several factors that make the CPU hot. In this post, I am discussing two main sources of heat: Turbo Boost and highly compact semiconductor area.

1) Turbo Boost

Modern CPUs have a dynamic frequency scaling mechanism, namely Turbo Boost for Intel processors, which increases the operating frequency of the CPU under high-demanding workload. Turbo Boost, when activated, raises the CPU frequency to a significantly higher value, thus heat up the CPU really fast (eq.1).

2) Extremely high CPU computing power on a small semiconductor area (die)

With the advanced fabrication process, the semiconductor size is reduced more and more. Many high-end laptop CPU are fabricated with a really small 14nm technology. This helps increase CPU computing power by putting more semiconductor gates into the same area. However, it create an adverse impact on operating temperature since there is less space to dissipate heat. Below is a comparison of the 6-core i7 8750H CPU that can be found on many ultra-thin ultrabooks (Gigabyte Aero'18, Alienware'18, System76 Oryx Pro'18, etc.) against its predecessor.

CPU i7-8750H i7-7700HQ Base clock 100 MHz 100 MHz Non-Turbo Boost Freq. 2,200 MHz (22x) 2,800 MHz (28x) Turbo Boost Freq. 4,100 MHz (1 core) (41x) 3,900 MHz (6 cores) (39x) 3,800 MHz (1 core) (38x) 3,400 MHz (4 cores) (34x) Process 14nm 14nm Package size 42 mm x 28 mm x 1.49 mm 42 mm x 28 mm x 1.49 mm

As shown in the table, when all 6 physical cores of i7-8750H run in Turbo Boost mode, they consume huge power @3.9GHz per core x 6. To make thing worse, the 8750H has the same package dimension as its previous generation 7700HQ making the heat dissipation a little more challenging. (a more accurate comparison should be done on the gate size of the 8750H vs 7700HQ, but I can't find such info for the latter)

Heat Reduction Solutions for Powerful yet Ultra-thin Laptops

From Eq.1, the power consumption and heat generation can be reduced by:

  • Reduce CPU operating voltage (undervolting)
  • Reduce CPU operating frequency (underclocking)

Also, the power consumption can be reduced by turning off Turbo Boost, which is the easiest yet one the most ineffective ways to battle CPU heat generation.

Undervolting: voltage and power consumption has a quadratic relation, so reducing voltage is an effective way to reduce power to an extent. However, there are some limitation of undervolting:

  • Only able to reduce the power to a certain degree because the amount of reduction must be small enough to not destabilize the CPU operation
  • It is also required specific tool to perform undervolting in Linux (but doable)
  • Cannot be adaptively applied to various power profiles such as performance (AC), powersave (battery), etc

Underclocking Method in Linux

First, we start with a manual method to underclock CPU in Linux. The automatic method to adaptive underclock CPU will be covered in another post.

There are three frequencies of interest for a CPU: maximum frequency, minimum frequency and running frequency. Below is the minium and maxium allowed operating frequency of an i7 8750H

$ lscpu |egrep "Model name|MHz" Model name: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz CPU MHz: 899.980 CPU max MHz: 4100.0000 CPU min MHz: 800.0000

When Turbo Boost kicks in, the CPU frequency of all the cores may raise to its maximum (4.1GHz for 1 core or 3.9GHz for 6 cores of the 8750H). We want to reduce this maximum threshold to an empirical value such that it only neglectedly drops the laptop performance while keeping power consumption (and temperature) well below TDP.

To alter CPU freq thresholds, we use cpupower with two main steps.

First, we need to specify a governing power profile that we want to associate our modified CPU freq thresholds:

$ sudo cpupower frequency-set -g performance # set governor profile to performance

There are several power profiles that one can set. I am using 2 main profiles: performance when on AC and powersave when on battery. There are more profiles in [4].

Then set the new maximum freq for performance profile:

$ sudo cpupower frequency-set --max 3400000 # set Turbo Boost max CPU freq to 3.4GHz

You should do some experiments and choose the best max freq based on your laptop hardware, cooling system. With 3.4GHz as a new max freq, my laptop CPU temperature is around 65-75oC under heavy work loads (it also has a 1070 GTX with MAX-Q with 90% utilization). Without underclocking, it was 95oC before.

Finally, check if we have done correctly by tlp:

$ sudo tlp-stat -p | grep 'scaling_max_freq' /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu10/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu11/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu8/cpufreq/scaling_max_freq = 3400000 [kHz] /sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq = 3400000 [kHz]

We are all set!

F.Y.I: without underclocking, my CPU used to throttle a lot under heavy tasks:

$ journalctl | grep 'temp.*throttled' ... Sep 28 22:00:25 oryx kernel: CPU1: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU10: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU11: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU5: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU3: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU9: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU4: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU7: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU0: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU6: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU8: Package temperature above threshold, cpu clock throttled (total events = 5924) Sep 28 22:00:25 oryx kernel: CPU2: Package temperature above threshold, cpu clock throttled (total events = 5924)

Conclusion

Few months ago, I purchased a powerful Linux ultrabook with 6-core CPU and a GTX 1070 MAX-Q. Upon using it, I was quite disappointed by how hot this laptop was under heavy loads. Therefore, I had been on lookout for effective methods to keep the heat under control. After a while, I figured out that underclocking gets the job done nicely for me. I hope you will find it useful for you, too.

P/S: I have discussed an underclocking method to manually reduce heat dissipated by high-end CPUs in ultra-thin laptops. In the next post, I will show how to automate the process on AC plugged in and battery. Of course, if I have time, and you guys find this post useful :).

P/S: the model name of my laptop is Sytem76 Oryx Pro 4, primary OS: Ubuntu 18.04 (pre-installed). Secondary OS: Windows 10.

Reference

[1] CPU power dissipation, https://en.wikipedia.org/wiki/CPU_power_dissipation

[2] Intel i7-8750H, https://en.wikichip.org/wiki/intel/core_i7/i7-8750h

[3] Intel i7-7700HQ, https://en.wikichip.org/wiki/intel/core_i7/i7-7700hq

[4] Underclocking, https://en.wikipedia.org/wiki/Underclocking

submitted by /u/wwolfvn
[link] [comments]

gpu/cpu performance in games

Sat, 2018-10-13 17:08

hello, my gtx 1060 has shitty performance in linux with the latest drivers, will getting an amd be better? which one should i buy? i mainly play dota so that would mean to me a permanent switch to linux

submitted by /u/RelaxProphet
[link] [comments]

What is the difference between ARGUMENT , PARAMETER , OPTION in bash command?

Sat, 2018-10-13 14:22

I am totally confused about the three.

submitted by /u/NaveenCoder
[link] [comments]

[Discussion] What code editors are you using with Linux?

Sat, 2018-10-13 14:10

I’m curious to see what code editors the GNU/Linux community are using.

submitted by /u/Intifi
[link] [comments]

Pages