11708 Video Cards for 3D + ZFS - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > System Hardware

System Hardware Internal storage, motherboards, PCI cards, stuff inside the case.

Reply
 
Thread Tools Display Modes
  #1  
Old November 16th, 2008, 19:33
norbot norbot is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Video Cards for 3D + ZFS

I would like to be able to run a desktop environment with modest 3D acceleration (OpenGL for games, Google Earth, Compiz, ...) and ZFS. I am not philosophically opposed to a proprietary 3rd party driver. I have been very satisfied with Nvidia cards and their drivers for years. However, with no support for amd64 and a imposing a limit of 512M on kmem_size, the nvidia driver constrains ZFS. It can be made to work by limiting ZFS's ARC size, but I would really like to able to give ZFS more memory to play with.

Are there any alternatives to nvidia that are stable and offer reasonable performance?
Reply With Quote
  #2  
Old November 16th, 2008, 20:58
warinthepocket warinthepocket is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

run a 32bit machine with a nice desktop setup, and a separate ZFS file server
Reply With Quote
  #3  
Old November 16th, 2008, 21:18
SaveTheRbtz's Avatar
SaveTheRbtz SaveTheRbtz is offline
Junior Member
 
Join Date: Nov 2008
Location: Russia, Saint-Petersburg
Posts: 83
Thanks: 17
Thanked 9 Times in 7 Posts
Default

basic tuning
vm.kmem_size="1536M"
vm.kmem_size_max="1536M"
vfs.zfs.arc_min="16M"
vfs.zfs.arc_max="64M"

Plus
options KVA_PAGES=512

in kernel config should help, I think.
Reply With Quote
  #4  
Old November 16th, 2008, 21:22
hedwards hedwards is offline
Member
 
Join Date: Nov 2008
Posts: 189
Thanks: 3
Thanked 18 Times in 16 Posts
Default

I think that I'll try that. Unfortunately as of right now the only 2 companies producing decent graphics chips are AMD/ATI and nVidia, and nVidia doesn't yet have and amd64 compatible driver and I think that AMD/ATI drivers for 3d are still forthcoming for newer chips.

And you are correct, if you go above, 512M IIRC, you'll get an instant panic as the kernel first loads. That kernel option is mandatory if you're wanting to increase kmem that much. Or at least it is on my 2gb rig.
Reply With Quote
  #5  
Old November 16th, 2008, 21:40
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

An old ATI card is probably the only option right now. I think both the ATI driver projects (ati and radeonhd) have 3D support for RV500 and older chipsets.
Reply With Quote
  #6  
Old November 17th, 2008, 00:42
norbot norbot is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SaveTheRbtz View Post
basic tuning
vm.kmem_size="1536M"
vm.kmem_size_max="1536M"
vfs.zfs.arc_min="16M"
vfs.zfs.arc_max="64M"

Plus
options KVA_PAGES=512

in kernel config should help, I think.
Unfortunately, the nvidia driver will not start if KVA_PAGES is increased. This is the basic problem I am trying to address.
Reply With Quote
  #7  
Old November 17th, 2008, 14:59
Almindor Almindor is offline
Junior Member
 
Join Date: Nov 2008
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

Note that to get 3D on R500 cards with the OSS "radeon" driver you need to compile your own latest and greatest Mesa as well as [lib]drm (which is much less of a fuzz, and gets you accelerated 2D via EXA).

I only did the drm part, works fine. Since 7.1 is SUPPOSEDLY going to update Xserver to 1.5 (is it?) then I'll just wait for the basic 3D to work by then.

NOTE: no GL 1.3+ functionality, no GLSL.
Reply With Quote
  #8  
Old November 17th, 2008, 17:26
norbot norbot is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

@aragon and @Almindor:
Very interesting. Thanks. I probably won't be able to find an old card retail, and would have to get it 2nd-hand somewhere.
What's your experience with these drivers on amd64?
Reply With Quote
  #9  
Old November 17th, 2008, 18:37
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Norbot, I've run both drivers on amd64 with 8 GB RAM and they work flawlessly, except I have an RV620 based card so I don't even get XV support, let alone 3D support. Despite that, everything except games/3D works fine. My E8500 CPU is fast enough to decode h.264 video (only tested upto 720p).

So the only problem with the ATI drivers is hardware support. They've been rock stable for me on amd64.
Reply With Quote
  #10  
Old November 17th, 2008, 20:54
rink@ rink@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've had terrible experiences with the 'nv' driver on amd64 - in fact, it hurts performance so much that my machine was unusable :-(

And the 'nvidia' driver on i386 doesn't seem to work if you have >=4GB RAM (I have 8GB).

However, when I still had 2GB RAM, FreeBSD/i386 + x11/nvidia-driver simply ROCKED! Great performance, and ZFS never paniced on me after some tuning. Note that I run CURRENT, so YMMV...
Reply With Quote
  #11  
Old November 18th, 2008, 23:44
Almindor Almindor is offline
Junior Member
 
Join Date: Nov 2008
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by norbot View Post
@aragon and @Almindor:
Very interesting. Thanks. I probably won't be able to find an old card retail, and would have to get it 2nd-hand somewhere.
What's your experience with these drivers on amd64?
You could also try the radeonhd driver. I tried that one sometime in the past (on same card, but radeonhd support R500+ so I was "lucky" in this regard) and it seemed to be working with some quirks. I noticed there's a -devel port for it so perhaps try it out?

It has a "shadowFB" accel method for 2D which is supposedly better for it than EXA. Don't expect any 3D tho.

Anyways, for me it's either "all" or "nothing" when it comes to 3D. I need GLSL to work on projects, so right now I just go to windblows for those.
Reply With Quote
Reply

Tags
amd64, nvidia, opengl, video card, zfs

Thread Tools
Display Modes

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

Forum Jump


All times are GMT +1. The time now is 14:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0