LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-13-2021, 04:02 AM   #1
zctee
LQ Newbie
 
Registered: Jan 2011
Posts: 8

Rep: Reputation: 1
Debian 10 vs Debian 8 performance


Dear all,
Recently we are trying to update our system from Debian8 to Debian10, and then found out that the performance of the Debian10 seems like not as good as Debian 8.
For example, we tried to open mplayer at both Debian8 and Debian10. At Debian 8, it tooks around 1 second to open the player, but at Debian 10 it tooks around 4 seconds.
We done some debugging by strace at both OS. Found out that for Debian10, it seek and read the library files multiple time at the same location. Not sure why this is happening.
Attach the log from strace for both Debian8 and Debian10.

Is there any reason why Debian10 is behaving such way? Any way i can boost up the performance of the Debian10?

Thank you
Attached Thumbnails
Click image for larger version

Name:	Deb8trace.JPG
Views:	19
Size:	68.0 KB
ID:	35248   Click image for larger version

Name:	Deb10trace.JPG
Views:	16
Size:	147.7 KB
ID:	35249  
 
Old 01-13-2021, 02:38 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,538
Blog Entries: 10

Rep: Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879
Quote:
Originally Posted by zctee View Post
At Debian 8, it tooks around 1 second to open the player, but at Debian 10 it tooks around 4 seconds.
Only the first time, or every time?
Anyhow, mplayer has been superceded by mpv on modern distros.
 
Old 01-13-2021, 09:16 PM   #3
zctee
LQ Newbie
 
Registered: Jan 2011
Posts: 8

Original Poster
Rep: Reputation: 1
Everytime when start run mplayer will takes 4 second.
Same thing happen to mpv as well. I see multiple read and lseek when load library

Thank you
 
Old 01-14-2021, 03:06 AM   #4
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 89

Rep: Reputation: 41
Generally newer version require somewhat faster CPU/RAM to obtain the same performance as the older distro you use....
Imho this is a normal consequence/behavior.
At a certain moment your hardware will even be too old to run the latest version of Debian.
Luckily nowadays new hardware is so fast that it will run many years with newer versions without any problem.
On older hardware I often switch to lighter Debian based distribution, like Bunsenlabs or MX-Linux.
They are supported very well as they rely on the Debian updates.

For a lot of common things (office, mail, surfing) that do not need advanced/the latest hardware, this work perfect.

Last edited by andre@home; 01-14-2021 at 03:07 AM.
 
1 members found this post helpful.
Old 01-14-2021, 05:43 AM   #5
zctee
LQ Newbie
 
Registered: Jan 2011
Posts: 8

Original Poster
Rep: Reputation: 1
I do understand that newer debian might run heavier as compared to older debian version. However, I am just confuse that why the strace shows so many read and seek same location. It seems not normal. I think this is something that can be avoided and get faster performance.
Thank you.
 
1 members found this post helpful.
Old Yesterday, 01:11 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,538
Blog Entries: 10

Rep: Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879
Quote:
Originally Posted by zctee View Post
Everytime when start run mplayer will takes 4 second.
Same thing happen to mpv as well. I see multiple read and lseek when load library
And this happens on the same piece of hardware?
I find it hard to believe that you have some ARM device that dual boots Debian 8 and 10. Please explain how you made the comparison.
Other factors might be playing into the effect you're seeing.
 
Old Yesterday, 02:39 AM   #7
zctee
LQ Newbie
 
Registered: Jan 2011
Posts: 8

Original Poster
Rep: Reputation: 1
Hi Ondoho,
We do not do dual boot. Our machine boots on SD Card.
We do the comparison by using two different SD Cards.
The first SD Card runs on Debian 8.
The second SD Card is Debian 10. The second SD Card's Debian 10 is upgraded from the same image (Debian 8) of the first SD Card.

We do the comparison by inserting either one of the SD Card at a time to the same machine.

Thank you.
 
Old Yesterday, 07:11 AM   #8
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 89

Rep: Reputation: 41
SD cards may be bad for your speed.... SSD's, certainly small ones are new around 20 euros, so are so cheap why fizzle with SD cards?
Price impression: https://tweakers.net/solid-state-dri...iZwXmaekpVBLQA

And SD cards are quite unreliable with respect to so many write actions in time. It may shorten the life time of this SD card very much.

Now I understand your problem much better.... my advice: Avoid SD cards as much as possible for such a use.
 
Old Yesterday, 07:39 AM   #9
heathcliff36
Member
 
Registered: Jun 2019
Location: West Coast, USA
Distribution: Debian
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by zctee View Post
The second SD Card is Debian 10. The second SD Card's Debian 10 is upgraded from the same image (Debian 8) of the first SD Card.
So the Debian 10 OS is a dist-upgrade from an original Debian 8 install.

To get a fairer comparison of performance it may be better to have a new install of Debian 10 from the latest Debian 10 .iso file.
 
Old Yesterday, 10:24 AM   #10
uteck
Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: GalliumOS on Chrombook
Posts: 590

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by heathcliff36 View Post
So the Debian 10 OS is a dist-upgrade from an original Debian 8 install.

To get a fairer comparison of performance it may be better to have a new install of Debian 10 from the latest Debian 10 .iso file.
I agree. I have seen some odd issues after a dist-upgrade causing very poor performance. I have also done dist-upgrades a number of times on servers with no noticeable impact, so it seems to be an inconsistent issue bet needs to be ruled out.
 
Old Yesterday, 02:38 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,538
Blog Entries: 10

Rep: Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879
^ Yeah, esp. how did you upgrade, from 8 to 9, and then from 9 to 10? No testing repos involved? Followed debian's own instructions?
Quote:
Originally Posted by zctee View Post
Hi Ondoho,
We do not do dual boot. Our machine boots on SD Card.
We do the comparison by using two different SD Cards.
The first SD Card runs on Debian 8.
The second SD Card is Debian 10. The second SD Card's Debian 10 is upgraded from the same image (Debian 8) of the first SD Card.

We do the comparison by inserting either one of the SD Card at a time to the same machine.

Thank you.
OK.
I know not exactly what that small snip of an strace signifies.
All I see is mplayer is accessing some library libtinfo.so.5 on Deb8, and libtinfo.so.6 on Deb10.
Presumably when it's in the process of opening the same identical video file?
And on Deb10, that takes so much longer, like it's multiple accesses instead of just one?
...
I had a look under /lib:
Code:
ls -l libtinfo*
-rw-r--r-- 1 root root 24 Feb 13  2020 libtinfo.so
lrwxrwxrwx 1 root root 16 Feb 13  2020 libtinfo.so.6 -> libncursesw.so.6*
That's not Debian, but it makes me think that maybe if libtinfo.so.6 is a symlink, that results in 2 filesystem reads instead of 1?

Also, both files belong to ncurses.
mpv does not depend on ncurses, so your statement
Quote:
Originally Posted by zctee View Post
Same thing happen to mpv as well
would appear to be incorrect.
 
Old Yesterday, 03:33 PM   #12
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 1,406

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
All I see is mplayer is accessing some library libtinfo.so.5 on Deb8, and libtinfo.so.6 on Deb10.
What puzzles me is that on Debian 10 it's opened with the flag O_LARGEFILE. The sizes of the two versions of terminfo library are not so different (at least on AMD64 architecture).
Ubuntu 20.04:
Code:
$ ls -1hs /usr/lib/x86_64-linux-gnu/libtinfo.so.[56].*
180K /usr/lib/x86_64-linux-gnu/libtinfo.so.5.9
188K /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
Ubuntu 18.04 (it has only libtinfo5):
Code:
168K /lib/x86_64-linux-gnu/libtinfo.so.5.9
I'd think the 32-bit off_t can handle sizes of this magnitude? Was mplayer on Debian 10 just compiled with -D_FILE_OFFSET_BITS=64?

Last edited by shruggy; Yesterday at 03:57 PM.
 
Old Yesterday, 03:39 PM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,538
Blog Entries: 10

Rep: Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879Reputation: 4879
I remember reading somewhere that "mplayer code is a mess, carrying decades of cruft".

Maybe it's possible to call mplayer "without ncurses"? mpv has an option like that, sth like '--no-terminal-controls'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iSCSI write performance very poor while read performance is excellent dinominant Linux - Server 1 10-10-2012 11:51 AM
V-server Performance, IO Scheduler and Allocator resource usage and performance. debwalker Linux - Server 0 07-14-2012 05:21 PM
Software Raid 6 - poor read performance / fast write performance Kvothe Linux - Server 0 02-28-2011 04:11 PM
Lighttpd performance problem + RAID performance problem in a high load site phaz0r Linux - Server 0 11-16-2008 09:52 AM
LXer: Performance Technologies Announces Availability of AMC121 High-Performance Comp LXer Syndicated Linux News 0 09-18-2007 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration