hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : FreeBSD linux compatibility
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

FreeBSD linux compatibility

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2007, 05:00 PM
BostonGuru BostonGuru is offline
Aspiring Evangelist
 
Join Date: Dec 2005
Posts: 394

FreeBSD linux compatibility


I have some linux binaries that I would like to run on a FreeBSD.

Now I understand that there is a linux compatibility layer to run these programs. If I am correct this is not an emulator, therefore there is no performance lost. Is this correct?

I want to run FreeBSD on an opteron server. There is a AMD64 version of FreeBSD, and there are also AMD64 versions of the binaries I want to run. If possible I would like to run the AMD64 versions in order to get better performance from the Opterons. Will the compatibility layer still work fine, or will it be converting to 32 bit processing, or even just giving an error?

Reply With Quote


Sponsored Links
  #2  
Old 07-03-2007, 04:03 AM
eztiger eztiger is offline
Junior Guru Wannabe
 
Join Date: Apr 2005
Posts: 81
I don't pretend to understand the intricacies of the caompatibility layer - but yes, FreeBSD bill it as not an emulator.

My limited understanding is that the kernel module intercepts and rewrites system calls as required.

I've had reports from users that their linux only binaries / programs run faster or with less fuss than under 'true' linux.

However there are reports on the freebsd mailing lists of some things not working - so it isn't a golden bullet. It is, however, pain free to set up and completely transparent.

Some things to note :

- It requires the kernel module to be loaded
- You need to install the linux compatibility package which basically puts a skeleton fedora install into /opt/compat
- It presents itself as a 2.4 based system. I believe the version shipping with FreeBSD -CURRENT (7) will present as 2.6


As for your 64 bit query, I don't *think* so. Here is the blurb from the package :

Quote:
Information for linux_base-fc-4_10:

Comment:
Base set of packages needed in Linux mode (for i386/amd64)


Description:
This port contains packages from a near-minimal installation of Fedora Core
Linux 4. These packages, in conjunction with the linux kernel module,
form the basis of the Linux compatibility environment. It is designed to
provide a nice user experience by using the FreeBSD configuration for
corresponding Linux stuff where possible. Because of this any work which
needs to chroot into the linux base may not work as expected (no fallthrough
to the FreeBSD config possible).

This port is only available for the i386/amd64 architecture (i386/32 bit mode).

If you want to run X11 applications, install the x11/linux-xorg-libs port.

For cross-development this port is not suitable, you should use a linux_dist
port instead in this case.
Which seems to imply 32 bit only I'm afraid.

However you should check for information on 7 which may address this (above info from a 6.2 system)

Kev

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Verio Europe Replaces FreeBSD Hosting Solution with Linux Shared Hosting Web Hosting News 2013-01-14 15:21:25
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Colocation Provider NYI Launches East Coast Mirror for FreeBSD Foundation Web Hosting News 2012-05-25 10:37:18
Host Virtual Expands Cloud Service in TelecityGroup London Data Center Web Hosting News 2012-02-02 16:55:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?