You are not logged in.

#1 2016-11-24 10:50:02

OaaH
Member
Registered: 2016-11-24
Posts: 21

Slow first load of programs

I bought a new Lenovo ideapad 300-15ISK a few months ago.
While installing arch (this is the second time i install arch on a computer) i had the feeling that the install wasn't smooth.
The first load of programs takes a noticeable long time.

simple read write tests give normal results (I think they are normal):


dd if=/dev/zero of=/test bs=100M count=10

10+0 records in
10+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 8.35722 s, 125 MB/s

hdparm -Tt /dev/sda:

 Timing cached reads:   10964 MB in  2.00 seconds = 5486.25 MB/sec
 Timing buffered disk reads: 346 MB in  3.00 seconds = 115.16 MB/sec

I think the overall performance of the computer is fine, but there are several areas when the performance is noticeably slow.
if for example i compare the loading time of spyder at my laptop against my 5yo(!) ubuntu pc I get:

at my new laptop:
time sprder3:

real	0m33.124s
user	0m11.773s
sys	0m1.667s

at old PC:
time spyder3

real	0m16.037s
user	0m5.771s
sys	0m0.651s

while timing spyder at second old pc still wins:

new laptop:
time spyder3:

real	0m5.934s
user	0m5.867s
sys	0m0.390s

old pc:
time spyder3:

real	0m3.900s
user	0m4.592s
sys	0m0.416s

same with loading smaller programs:

new laptop:
time geany

real	0m3.396s
user	0m0.970s
sys	0m0.100s

old PC
time geany

real	0m1.980s
user	0m0.335s
sys	0m0.030s

In addition, installing packages through pacman or yaourt usually getting slow at stages like "resolving dependencies".

Output of dmesg here.

Edit:
my laptop processor is 6th Generation Intel® Core™ i5-6200U Processor (2.30GHz 3MB)
the pc at home is intel i3-2100 CPU 3.1GHz

my old pcs hdparm:

 Timing cached reads:   10884 MB in  2.00 seconds = 5444.18 MB/sec
 Timing buffered disk reads: 534 MB in  3.00 seconds = 177.44 MB/sec

Any help would be highly appreciated,
David

Last edited by OaaH (2016-11-24 12:03:38)

Offline

#2 2016-11-24 11:32:08

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Slow first load of programs

desktop spindled hard drives typically are 7200 rpm, while the one in that laptop are 5400 rpm.

I don't know the specs of your old PC so I don't know about the processor on it, but that laptop is a dual core 3.1gHz, at least according to this site

Offline

#3 2016-11-24 12:18:02

OaaH
Member
Registered: 2016-11-24
Posts: 21

Re: Slow first load of programs

You are right about me not specifying the processors, i added them to the original post.

You also right that my PCs RPM was 7200, but yet hdparm on both machines wasn't that different to explain the big loading difference:

laptop:

Timing cached reads:   10964 MB in  2.00 seconds = 5486.25 MB/sec
Timing buffered disk reads: 346 MB in  3.00 seconds = 115.16 MB/sec

pc:

 Timing cached reads:   10884 MB in  2.00 seconds = 5444.18 MB/sec
 Timing buffered disk reads: 534 MB in  3.00 seconds = 177.44 MB/sec

And as shown above, I got an almost factor 2 in performance between them. Plus the fact that my pc is after all 5 years all, with heavier operating system (ubuntu) and heavier desktop environment (xfce on ubuntu, fluxbox on arch) etc.  Programs like pycharm takes 50 seconds to load, spyder 30 seconds, libreoffice writer 15 seconds. It feels like it is too slow for a new machine with minimal setup

Last edited by OaaH (2016-11-24 12:18:15)

Offline

#4 2016-11-24 14:15:41

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Slow first load of programs

# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   6368 MB in  2.00 seconds = 3185.37 MB/sec
 Timing buffered disk reads: 356 MB in  3.01 seconds = 118.23 MB/sec
# hdparm -Tt /dev/sdc

/dev/sdc:
 Timing cached reads:   6442 MB in  2.00 seconds = 3222.30 MB/sec
 Timing buffered disk reads: 304 MB in  3.02 seconds = 100.80 MB/sec
#

sda is a 10k rpm WD raptor drive,while sdc is a typical 7200 rpm WD drive.

Oaah, you are aware that laptop parts are selected for minimal power usage ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2016-11-24 15:19:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Slow first load of programs

Looking at the user/sys times, I'd benchmark the cpus (single threaded)

Offline

#6 2016-11-24 20:05:18

OaaH
Member
Registered: 2016-11-24
Posts: 21

Re: Slow first load of programs

seth wrote:

Looking at the user/sys times, I'd benchmark the cpus (single threaded)


some data:

using phoronix c-ray test.
my result: 89.43 seconds
According to OpenBenchmark.org my processor (i5-6200U) should be: 61.98

phoronix scimark, FFT test: 167.54 Mflops
could not find data for processor, but for i5-6600k:~ 350 Mflops
for i5-4250U : 152.67



hardinfo tests:

CPU Blowfish   2790 MHz	3.021
CPU CryptoHash 2790 MHz	420.726
CPU Fibonacci 2790 MHz 	1.804
CPU N-Queens 2790 MHz	5.380
FPU FFT            2790 MHz	0.923
FPU Raytracing 2790 MHz	4.198

As far as I understand, performance is below average, but not catastrophycally.

Offline

#7 2016-11-24 20:28:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Slow first load of programs

The idea is to test your two systems against each other and c-ray is a multithreaded (<=16 cores) test, thus likely meaningless (for most applications will do a serial startup)

For a simple single core benchmark try

echo 'scale=5000; a(1)*4' | time bc -l # fp
echo '2^2^24' | time bc #int

Offline

#8 2016-11-24 21:28:28

OaaH
Member
Registered: 2016-11-24
Posts: 21

Re: Slow first load of programs

first command

echo 'scale=5000; a(1)*4' | time bc -l # fp

laptop:

21.00user 0.00system 0:21.01elapsed 99%CPU (0avgtext+0avgdata 1952maxresident)k
0inputs+0outputs (0major+132minor)pagefaults 0swaps

pc:

21.00user 0.00system 0:21.68elapsed 99%CPU (0avgtext+0avgdata 2092maxresident)k
176inputs+0outputs (1major+135minor)pagefaults 0swaps

and for the second command:

echo '2^2^24' | time bc #int

laptop:

234.15user 0.10system 3:54.86elapsed 99%CPU (0avgtext+0avgdata 22216maxresident)k
0inputs+0outputs (0major+15884minor)pagefaults 0swaps

pc:

234.38user 0.17system 4:16.51elapsed 99%CPU (0avgtext+0avgdata 22196maxresident)k
0inputs+0outputs (0major+1485minor)pagefaults 0swaps

kind of looks the same

Offline

#9 2016-11-24 21:40:09

OaaH
Member
Registered: 2016-11-24
Posts: 21

Re: Slow first load of programs

Lone_Wolf wrote:
# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   6368 MB in  2.00 seconds = 3185.37 MB/sec
 Timing buffered disk reads: 356 MB in  3.01 seconds = 118.23 MB/sec
# hdparm -Tt /dev/sdc

/dev/sdc:
 Timing cached reads:   6442 MB in  2.00 seconds = 3222.30 MB/sec
 Timing buffered disk reads: 304 MB in  3.02 seconds = 100.80 MB/sec
#

sda is a 10k rpm WD raptor drive,while sdc is a typical 7200 rpm WD drive.

Oaah, you are aware that laptop parts are selected for minimal power usage ?


I admit that you got me confused here, shouldn't the read/write speed be the most accurate performance measure? and didn't hdparm give reliable info about read speed?

I understand that laptops are expected to perform worst then PCs, but i don't recall that my old laptop (also cheep lenovo with arch on it) was that slow.

PS.
Thank you all for helping me!

Offline

#10 2016-11-25 07:48:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Slow first load of programs

The time measures (ignore the wall clock) suggest that the cpu is the limiting factor, but it seems not related to the single core performance (i would have thought so because of the clock margin)

It's not I/O either so the CPU might have to "do more" on the mobile device, maybe because of GPU emulation? Look at glxinfo and maybe the CPU load while running glxgears.

Offline

#11 2016-11-25 08:48:17

OaaH
Member
Registered: 2016-11-24
Posts: 21

Re: Slow first load of programs

Output of glxinfo here, I don't have a clue how to interpret this.
Glxgears shows reasonable FPS, and the CPU load is 10-15% while glxgears is running. Note also that i use this laptop to record music, and it gives reasonable performance (although i have an external soundcard), but recording multitrcaks with ardour and processing my guitar heavily with guitarix gives no special Xruns.

I just realized that my cpu scaling was set to powersave. I repeated some of the tests and sow only minor improvements (at load time, spyder became 25 seconds insteat of 30, pycharm 40 instead of 50 etc.). Single core performance was compared when i was in performance mode.

Offline

#12 2016-11-25 22:36:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: Slow first load of programs

It says you're using the intel driver and not software GL. Dead end.
Last arrow in my quiver: Is the mobile (slow) system encrypted?

Offline

#13 2016-11-26 21:30:34

OaaH
Member
Registered: 2016-11-24
Posts: 21

Re: Slow first load of programs

seth wrote:

It says you're using the intel driver and not software GL. Dead end.
Last arrow in my quiver: Is the mobile (slow) system encrypted?

I guess, not on purpose at least...

Offline

Board footer

Powered by FluxBB