Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-24-09, 06:54 AM   #1
Takehara
Registered User
 
Join Date: Nov 2009
Posts: 2
Default shared memory pixmaps

Would you tell me how to use shared memory pixmaps of MIT-Shared Memory Extension?

My graphic card is
Product Name: Quadro FX 5800
Driver Version: 185.18.36

and, we set the option "AllowSHMPixmaps" to "1" in "xorg.conf".

We checked it by the function:XShmQueryVersion whether X Window System can use shared memory pixmaps or not. As a result, the pixmaps argument returned false. It means the system cannot use shared memory pixmaps, so I want to know how to utilize the shared memory pixmaps.


Sincerely yours
Takehara is offline   Reply With Quote
Old 12-24-09, 08:15 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default Re: shared memory pixmaps

Check the Xorg log file if the drivers recognized the line you added. So how did you add it? The right way would be to add the line: Option "AllowSHMPixmaps" "1" to the right screen or device section.

Do you really need shared memory pixmaps? It is and old feature and should not be used in modern apps as you won't receive much hardware acceleration. If possible use another mechanism. If your app uses OpenGL use pixel buffer objects (PBOs) which offer roughly similar functionality.
Thunderbird is offline   Reply With Quote
Old 12-24-09, 10:01 AM   #3
Linuxhippy
Registered User
 
Join Date: Feb 2004
Posts: 585
Default Re: shared memory pixmaps

Shared memory pixmaps can be considered legacy and should be avoided if possible.
EXA/UXA based drivers don't support it anymore at all.

Use shared memory images instead and ShmPut/GetImage this should give you the same features,but is supported on all major platforums.

- Clemens
Linuxhippy is offline   Reply With Quote
Old 01-04-10, 07:52 AM   #4
Takehara
Registered User
 
Join Date: Nov 2009
Posts: 2
Default Re: shared memory pixmaps

Thank you for your advices.

We can use shared memory pixmaps by increasing the size of shared memory.
The size can be changed to 256MB by the following command;

# echo 268435456 > /proc/sys/kernel/shmmax

After that, the pixmaps argument of XShmQueryVersion function becomes true, so it means that we can use shared memory pixmaps.

The default size of shared memory is 32MB, and we have set the screen resolution 3840x2400. I thought that The default size might not be enough to the resolution.
Takehara is offline   Reply With Quote
Reply


Thread Tools

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 -5. The time now is 05:27 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.