Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SHM Extension issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ArturasB
n00b
n00b


Joined: 20 Sep 2002
Posts: 47
Location: Vilnius, Lithuania

PostPosted: Thu Oct 10, 2002 6:45 am    Post subject: SHM Extension issue Reply with quote

Hello everybody.

I have a question about the SHM extension of X11 - is the X server
that commes with Gentoo v1.2 pre-patched with this one ? If no -
where can I download it from ?

Thanks for your help in advance.

Best regards,
Art?ras B.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Oct 10, 2002 7:05 am    Post subject: Reply with quote

I think it's included:
Code:
$ grep SHM /var/log/XFree86.0.log
(II) Initializing built-in extension MIT-SHM

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
ArturasB
n00b
n00b


Joined: 20 Sep 2002
Posts: 47
Location: Vilnius, Lithuania

PostPosted: Thu Oct 10, 2002 7:20 am    Post subject: Reply with quote

rac wrote:
I think it's included:
Code:
$ grep SHM /var/log/XFree86.0.log
(II) Initializing built-in extension MIT-SHM


Hmmmm..... I don't "feel" it....
I have Duron 700 MHz, 128 MB of RAM, ATI All-In-Wonder Pro
(based on Rage Pro chip), I also use ATI drivers made by GATOS
(http://gatos.sourceforge.net), but XINE, for example, was smooter
on the same machine but with SuSe v7.3 (GATOS drivers + SHM).......

What could be wrong ?....
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 10, 2002 8:32 pm    Post subject: Reply with quote

did you put /dev/shm in your /etc/fstab ?

Code:


# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
#  memory if not populated with files)


tmpfs                   /dev/shm        tmpfs           defaults                0 0

Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 10, 2002 8:33 pm    Post subject: Reply with quote

OT: why is this line commented out by default ??
Back to top
View user's profile Send private message
ArturasB
n00b
n00b


Joined: 20 Sep 2002
Posts: 47
Location: Vilnius, Lithuania

PostPosted: Fri Oct 11, 2002 6:04 am    Post subject: Reply with quote

mglauche wrote:
did you put /dev/shm in your /etc/fstab ?


Hmmm... Nop :)
I'll try it, thanks for this idea.

Regards,
Arturas B.

P.S.: BTW, where can I read more about usage of SHM ?
Back to top
View user's profile Send private message
ArturasB
n00b
n00b


Joined: 20 Sep 2002
Posts: 47
Location: Vilnius, Lithuania

PostPosted: Fri Oct 11, 2002 7:52 am    Post subject: Reply with quote

ArturasB wrote:
mglauche wrote:
did you put /dev/shm in your /etc/fstab ?


Hmmm... Nop :)
I'll try it, thanks for this idea.

Regards,
Arturas B.

P.S.: BTW, where can I read more about usage of SHM ?


P.P.S.: how exatcly the line with /dev/shm in the fstab should look like ?
What parameters shall I specify there ?

Thanks in advance.
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Fri Oct 11, 2002 2:17 pm    Post subject: Reply with quote

the example above is a working fstab line.

do a mount -a, then df to see if its working ;)
Back to top
View user's profile Send private message
gillesg
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2002
Posts: 90

PostPosted: Fri Oct 11, 2002 2:37 pm    Post subject: Reply with quote

How can you tell it is used by XFree?

When XFree is running you can still umount /dev/shm.

Surprising 8O

Gilles
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum