LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-02-2008, 06:46 PM   #1
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
64-bit vs 32-bit Video encoding


Is there any benefit to installing a 64bit linux for the purposes video encoding/transcoding/compressing/etc as far as speed is concerned? Is there any benchmarks showing performance differences? The only ones I've seen are in windows and don't mention anything about 64 vs 32bit.

Reason I'm asking as 32-bit is more compatible and don't want to install 64-bit unless there is a reason I should and video encoding is the only place I could benefit from 64bit.
 
Old 05-03-2008, 09:28 PM   #2
anon099
Member
 
Registered: Oct 2002
Posts: 188

Rep: Reputation: Disabled
Yes... All the experience I have is with audio. But the difference, although I don't know of any benchmarks is enormous. Much more than double.
 
Old 05-03-2008, 10:05 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you use a biarch distro, you can run 32 bit versions of programs that have compatibility problems (usually plugins) in 64 bit mode.

I think that the main advantage to running a 64 bit distro is being able to install more memory. A chunk of memory space is occupied by the devices, so even if you have a 32 bit computer with 2GB installed you won't see all of that memory. On a 64 bit distro you can install a lot more memory, and this can profoundly effect the speed of memory intensive applications, such as editing video.
 
Old 05-03-2008, 10:52 PM   #4
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by padlamoij View Post
I don't know of any benchmarks
Well, I guess I'm going to have to do my own then. Thanks.
 
Old 05-04-2008, 02:45 AM   #5
proc
Member
 
Registered: Jul 2007
Location: /dev/urandom
Posts: 70

Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
If you use a biarch distro, you can run 32 bit versions of programs that have compatibility problems (usually plugins) in 64 bit mode.

I think that the main advantage to running a 64 bit distro is being able to install more memory. A chunk of memory space is occupied by the devices, so even if you have a 32 bit computer with 2GB installed you won't see all of that memory. On a 64 bit distro you can install a lot more memory, and this can profoundly effect the speed of memory intensive applications, such as editing video.

Qweh? 2 GB? 32bit cpus can support up to 4GB and with PAE mode a lot more, I think your referring to windows Xp and vista since they have that hard coded limitation.
 
Old 05-04-2008, 07:12 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by proc View Post
Qweh? 2 GB? 32bit cpus can support up to 4GB and with PAE mode a lot more, I think your referring to windows Xp and vista since they have that hard coded limitation.
I think that was virtual per process, not physical per system.

I'm not sure of the current Linux 32bit x86 limit on virtual address space per process. I think it is about 3GB. It may depend on some kernel build choice and/or it may have changed. A few years ago, some of my coworkers were trying to run a large virtual program on Linux with plenty of swap area and ran into that limit far below 3GB.

On Windows XP32 you can decide (in the boot.ini) either to limit per process virtual to 2GB while limiting file caching and other OS virtual memory uses to an uncomfortably low value, or to limit per process virtual to 3GB while limiting file caching and other OS virtual memory limits to an absurdly low value.

Without PAE a Linux 32bit kernel is limited to physical memory of about 3.25GB (the exact value depends on choices made by the BIOS). With or without PAE XP32 is limited to that same amount (with PAE it is a license restriction rather than a technical restriction). With PAE a Linux 32bit kernel can use much more memory (I think almost 16GB).

I don't understand how any of the above would result in a significant performance difference for and audio or video encoding program. But I don't know the internal details of those programs.

Most programs run on Linux are written for portability, and tend to use the same methods across architectures. But maybe the program in question doesn't. A program might use internal buffer management to access large files in a 32 bit architecture but use mapping to access files in a 64 bit architecture. If you can afford the virtual address space (in 64 bit you certainly can) mapping can be a lot better and might result in a dramatic increase in performance. But you won't see that with typical programs, because it assumes the programmer coded important parts of the program two different way to separately optimize for two different architectures.

Last edited by johnsfine; 05-04-2008 at 07:14 AM.
 
Old 05-04-2008, 01:34 PM   #7
proc
Member
 
Registered: Jul 2007
Location: /dev/urandom
Posts: 70

Rep: Reputation: 15
The reason why encoding preforemce is better is because the CPU can use 64 and 128bit smid instructions (MMX,3DNOW!,SSE-2-3 etc, the CPU can access 64 bits at a time, this has nothing to do with ram itself.
 
Old 05-04-2008, 03:54 PM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by proc View Post
The reason why encoding preforemce is better is because the CPU can use 64 and 128bit smid instructions
I overlooked that issue, because actually the CPU can use 64 and 128bit simd instructions (and can access 128 bits at a time) even running a 32bit application under a 32bit kernel.

However, I don't know what it takes to get the GCC compiler to generate those instructions in a 32bit application.

If the compiler doesn't generate the instructions, it won't matter that the CPU could have executed them. So you're probably correct that 128bit simd is a big advantage of 64bit mode (for applications that can make good use of simd).
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
Triple Boot Suse 10.3 32 bit, suse alpha 11.0 64 bit and Windows XP (32 Bit) 1kyle SUSE / openSUSE 1 02-28-2008 10:25 AM
LXer: Install Xen 3.1 Solaris domU (64 bit) under CentOS 5 dom0 (64 bit) LXer Syndicated Linux News 0 09-21-2007 12:00 AM
Integrated 16-bit Sound Blaster Pro compatible audio 24-bit DAC jelgavchik Linux - Laptop and Netbook 2 11-16-2006 09:20 PM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:39 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