From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 3 11:36:20 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D0ED106566C for ; Fri, 3 Apr 2009 11:36:20 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from mail-bw0-f164.google.com (mail-bw0-f164.google.com [209.85.218.164]) by mx1.freebsd.org (Postfix) with ESMTP id 8EAAD8FC16 for ; Fri, 3 Apr 2009 11:36:19 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by bwz8 with SMTP id 8so902303bwz.43 for ; Fri, 03 Apr 2009 04:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vPeiJKjbgEbHmedyGMR3MJtvFP3cgtcI6NJLD1kWgDM=; b=J1YaGGYpf3KAwPiS4M7u7Fklx6RYXubCuREy2rhFTeGWnatJXtonrZPD4vxXLna+UW v6QRpxEOdVcYezboLExm0VxOhNIkua+bJDhTEWjDILeygbSOERPAZOwEuh7wBmD/glBn SmJ7AAWRDpwucvT2KT0G4AXia+Nwxx1y6ih+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uxP6XLcTiGDCE4+b6X6bpYK5iYh723I65kT5Xl/AT81wE2YdBqxDgHigFEVG7bUDy+ oLLXLDvEnx01j8hzlEVB9ylcyLKFZvWlg4eZdCcPLBUA+9Q2wj+qRTrFmOOR5QI1m2S6 kVAoUoHcXKsFjDKb3OC3R+UUyB1Kk1m7vuI38= MIME-Version: 1.0 Received: by 10.223.127.8 with SMTP id e8mr943342fas.80.1238756613618; Fri, 03 Apr 2009 04:03:33 -0700 (PDT) Date: Fri, 3 Apr 2009 13:03:33 +0200 Message-ID: From: Harald Servat To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: some questions about 32 bit / 64 bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2009 11:36:20 -0000 Hello everybody, I have a laptop with a Centrino 2 Duo processor with 4GB of RAM and a dual VGA (one integrated in the mobo and an ATI Radeon). Now it uses the ATI Radeon, but if I set it to use the integrated VGA, the total free RAM drops to 3.X GB. I understand that this is due to sharing memory with the VGA. My first issue is, I'm currently working with Linux and I'm planning to switch to FreeBSD 7.1, but I don't know if switch to 32 or 64 bit (i.e., i386 or amd64). If I switch to the 32 bit version, which is the memory limit of a single user process? Will the entire system (kernel + user processes) be able to use the whole 4GB (or 3.XGB, if I switch to the integrated VGA)? Please note, avoid a war between 32bit vs 64bit benefits/cons. The second issue is about ports, if I install the 64 bit version I would need some libraries in 32 bit mode too. Is the ports system adapted to control these two different ABIs? If not, how do you manage this? Maybe installing FreeBSD twice (one for x86 and another for amd64)? Thank you. -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend...