View previous topic :: View next topic |
Author |
Message |
ArturasB n00b
Joined: 20 Sep 2002 Posts: 47 Location: Vilnius, Lithuania
|
Posted: Thu Oct 10, 2002 6:45 am Post subject: SHM Extension issue |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Oct 10, 2002 7:05 am Post subject: |
|
|
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 |
|
|
ArturasB n00b
Joined: 20 Sep 2002 Posts: 47 Location: Vilnius, Lithuania
|
Posted: Thu Oct 10, 2002 7:20 am Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 10, 2002 8:32 pm Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 10, 2002 8:33 pm Post subject: |
|
|
OT: why is this line commented out by default ?? |
|
Back to top |
|
|
ArturasB n00b
Joined: 20 Sep 2002 Posts: 47 Location: Vilnius, Lithuania
|
Posted: Fri Oct 11, 2002 6:04 am Post subject: |
|
|
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 |
|
|
ArturasB n00b
Joined: 20 Sep 2002 Posts: 47 Location: Vilnius, Lithuania
|
Posted: Fri Oct 11, 2002 7:52 am Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Fri Oct 11, 2002 2:17 pm Post subject: |
|
|
the example above is a working fstab line.
do a mount -a, then df to see if its working |
|
Back to top |
|
|
gillesg Tux's lil' helper
Joined: 17 Sep 2002 Posts: 90
|
Posted: Fri Oct 11, 2002 2:37 pm Post subject: |
|
|
How can you tell it is used by XFree?
When XFree is running you can still umount /dev/shm.
Surprising
Gilles |
|
Back to top |
|
|
|