LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   About CPUs, threads and ffmpeg (https://www.linuxquestions.org/questions/linux-general-1/about-cpus-threads-and-ffmpeg-4175457060/)

H5X00R 04-05-2013 10:04 PM

About CPUs, threads and ffmpeg
 
Hello,

Ffmpeg has an option called threads which speeds up encoding. I have an AMD Phenom Triple-Core Processor and I ran this command to check for threads so I can use that info for the threads option of ffmpeg.

Here is the output of lscpu
Quote:

Architecture: i686
CPU op-mode(s): 64-bit
CPU(s): 3
Thread(s) per core: 1
Core(s) per socket: 3
CPU socket(s): 1
Vendor ID: AuthenticAMD
CPU family: 16
Model: 2
Stepping: 3
CPU MHz: 2100.000
Virtualization: AMD-V
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
L3 cache: 2048K
Does this mean that my machine sees 6 cores from the info above?

i.e Three cores plus one thread per core = six cores

Let me know if my assumption is correct. Thanks

syg00 04-05-2013 11:12 PM

Quote:

Originally Posted by H5X00R (Post 4926042)
Does this mean that my machine sees 6 cores from the info above?

i.e Three cores plus one thread per core = six cores

Very strange "logic".
You have 3 cores, each of which can run 1 thread - i.e. not hiper-threaded.

H5X00R 04-05-2013 11:26 PM

deleted double post

H5X00R 04-06-2013 12:05 AM

Hello,

I found this link which explains CPUs and threads counts in linux
http://dbastreet.com/blog/?p=469

So, I was wrong about having six cores. My system sees four cores max. i.e 3 cores plus one thread and hyperthreading is unavailable in my bios.


All times are GMT -5. The time now is 08:20 AM.