LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2015, 01:08 AM   #1
TuxLinux5
LQ Newbie
 
Registered: Nov 2015
Posts: 9

Rep: Reputation: Disabled
A question about cores and application utilizing them


Hello

I want to invest in an intel i7 system down the road because my intel i3 feels slow when encoding videos with ffmpeg.

Depending on the chip and other factors on the i7, I could end up with either 4,6 or 8 cores.

If I manage to get an i7 with 6 or 8 cores, is ffmpeg capable of using them all, or is ffmpeg compiled to use a maximum of 4.

I asked this because I heard many application don't take advantage of the extra cores.

I know some of you might have a system with six or eight cores. If you had use ffmpeg or hanbrake to encode your videos, did any of these two programs utilized the 6 or 8 cores. Thanks

Last edited by TuxLinux5; 11-18-2015 at 06:17 PM.
 
Old 11-18-2015, 03:43 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
Hi
As far as I know there are no limitations for ffmpeg.

You might be mixing "real" cores with "virtual" ones?

In any case I have 4-cores CPUs since a few years, all with hyperthreading enabled therefore showing 8 vCPUs in the OS, and I don't remember ffmpeg not using any of the 8 vCPUs (and they all were used up to at least 80-90 when I was re-encoding videos).
No clue about Handbrake, but I would tend to think that it behaves the same way, just because I cannot think about a reason why it should not.

Pls. keep in mind that by having more CPUs you will increase as well the RAM usage => ideally you should have at least 1GB RAM for each CPU you have.

Cheers!
 
Old 11-18-2015, 04:16 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Quote:
Originally Posted by Pearlseattle View Post
You might be mixing "real" cores with "virtual" ones?
In fact, the OP is right, the current i7 desktop CPUs range from 4 cores/8 threads (socket LGA1151, for example i7 6700K) over 6 core/12 thread models (socket LGA2011, for example i7 5820K) up to 8 core/16 threads (LGA2011, for example i7 5960X). The next generation of high-end i7 CPUs (codename Skylake-E) will even have a 10 cores/20 threads model.
 
Old 11-18-2015, 06:48 PM   #4
TuxLinux5
LQ Newbie
 
Registered: Nov 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Pearlseattle View Post
Hi
As far as I know there are no limitations for ffmpeg.

You might be mixing "real" cores with "virtual" ones?

In any case I have 4-cores CPUs since a few years, all with hyperthreading enabled therefore showing 8 vCPUs in the OS, and I don't remember ffmpeg not using any of the 8 vCPUs (and they all were used up to at least 80-90 when I was re-encoding videos).
No clue about Handbrake, but I would tend to think that it behaves the same way, just because I cannot think about a reason why it should not.

Pls. keep in mind that by having more CPUs you will increase as well the RAM usage => ideally you should have at least 1GB RAM for each CPU you have.

Cheers!
My intel i3 has 2 real cores and 2 vCPUs for a total of 4 cores. Have you ever tested ffmpeg if it can use all cores?

I was hoping if you or anyone with six or more cores can do a one minute encoding speed test and compare.

Code:
ffmpeg -i inputfile.xxx -threads 4 -t 60 outoutfile.xxx

ffmpeg -i inputfile.xxx -threads 8 -t 60 outoutfile.xxx
And post back if ffmpeg did or did not use the extra cores. Thanks

Quote:
Originally Posted by TobiSGD View Post
In fact, the OP is right, the current i7 desktop CPUs range from 4 cores/8 threads (socket LGA1151, for example i7 6700K) over 6 core/12 thread models (socket LGA2011, for example i7 5820K) up to 8 core/16 threads (LGA2011, for example i7 5960X). The next generation of high-end i7 CPUs (codename Skylake-E) will even have a 10 cores/20 threads model.
These are good keywords to look for when I do go shopping for an i7. As there are many chipsets and generation type CPUs out there. I'll probably go for the six or eight cores which I can afford. The 10 cores and higher will be too expensive.

Thanks TobiSGD
 
Old 11-18-2015, 08:01 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
I have one of the better core i7's that simply rocks. The core i7 is pretty impressive. I'd suspect that ffmpeg can use all the cores but I have never tested it. I was using an old dual quad core xeon server for ripping and it was about 10 minutes on a dvd. I suspect most of that was the usb optical drive causing it to be slow. I do remember looking at top and they were all being used on the 8x.

Soon you can get a 74 core if you have the money.
 
Old 11-18-2015, 08:09 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
So, I looked at ffmpeg's documentation and found that if threading can be used is depending on which codec you intend to use. A short test showed that encoding in H.264 can be multi-threaded, while encoding using libxvid does not react to the thread option.
 
Old 11-18-2015, 09:05 PM   #7
TuxLinux5
LQ Newbie
 
Registered: Nov 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Soon you can get a 74 core if you have the money.
If I had the money I would love to buy a supercomputer with 33.86 petaflops. I could encode all my videos in a blink of an eye



Sort of on topic, I though the raspberry PI 2 was the fastest single board computer. I discovered the odroid-xu4 which is smaller in size has 8 cores, 2GB RAM, 2 USB 3.0 ports, 1 USB 2.0 port and 1 Gigabit ethernet.

It's amazing how fast single board technology is getting. But I don't think the odroid-xu4 can match the same performance as an i7 w/8 cores.
 
Old 11-18-2015, 09:12 PM   #8
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,692

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by TuxLinux5 View Post
If I had the money I would love to buy a supercomputer with 33.86 petaflops. I could encode all my videos in a blink of an eye



Sort of on topic, I though the raspberry PI 2 was the fastest single board computer. I discovered the odroid-xu4 which is smaller in size has 8 cores, 2GB RAM, 2 USB 3.0 ports, 1 USB 2.0 port and 1 Gigabit ethernet.

It's amazing how fast single board technology is getting. But I don't think the odroid-xu4 can match the same performance as an i7 w/8 cores.
(Getting more and more off-topic)
To put it in perspective, the entire Odroid costs a fraction of a core i7 CPU. It would be unfair to compare them.
 
Old 11-19-2015, 05:36 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
The odroid-xu4 features a Samsung Exynos 5 CPU, which has a big.little configuration (4 Cortex-A7 and 4 Cortex-A15 cores), so it is not really an 8-core CPU, since you can't use all 8 cores concurrently. Also, these CPUs are in a different class than desktop CPUs and can't compete performance-wise with Intel's CPUs (which is fine, as they have a different purpose).
 
Old 11-19-2015, 06:18 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Quote:
Originally Posted by TobiSGD View Post
The next generation of high-end i7 CPUs (codename Skylake-E) will even have a 10 cores/20 threads model.
Sorry, the correct codename is Broadwell-E, not Skylake-E.
 
  


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
hide cpu cores from an application thllgo Linux - Server 3 06-17-2010 05:08 AM
How to load balance an application over isolated cores (isolcpus) sanitynotvanity Linux - General 1 06-04-2010 03:39 AM
[SOLVED] Debian OpenLDAP Question: Custom LDAP Schemas Without Utilizing slapd.conf mattseanbachman Linux - Server 1 03-02-2010 05:54 AM
LXer: Deployment Seam Application against MySQL 5 database to Jboss 4.0.5 utilizing Seam Plugin for NetBeans 5.5.1 LXer Syndicated Linux News 0 06-30-2007 02:16 AM
Question : catching cores Saeven Linux - General 2 06-13-2002 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration