S3 Video Chipset/Swapping Problems

S3 Video Chipset/Swapping Problems

Post by Mr_Muppe » Tue, 14 Sep 1993 15:09:17



I just recently installed Linux and am enjoying it's use very
much!
However, I'm having a hell of a time with getting X to run like
I want it to.

I understand that X does not suppor the S3 video card, but is there
someone out there with a "driver" for this video card (for color)
Also, xterm allways quits out with a segmentation fault!
Any ideas?

And for the swapping problem:
I've got a 486-66 w/ 16mb RAM and a 5mb SWAP partition.  I had a background
script logging the /proc/meminfo every 5 seconds while I ran X and
loaded it up with those goofy games and whatnot. Eventually, no more windows
could be opened, and upon returning to the shell, I noticed that
ram used was near 16mb, while swap used was 0!!  It says that there is
5megs of swap, 0 used, 5megs free!  Why doesn't it use the swap device?
(Yes, it's mounted from fstab)

Any ideas or helpful hints would be greatly appreciated...

John M. Gonyo

 
 
 

S3 Video Chipset/Swapping Problems

Post by Scott D. Heavn » Wed, 15 Sep 1993 00:44:51



Quote:> And for the swapping problem:
> I've got a 486-66 w/ 16mb RAM and a 5mb SWAP partition.  I had a background
> script logging the /proc/meminfo every 5 seconds while I ran X and
> loaded it up with those goofy games and whatnot. Eventually, no more windows
> could be opened, and upon returning to the shell, I noticed that
> ram used was near 16mb, while swap used was 0!!  It says that there is
> 5megs of swap, 0 used, 5megs free!  Why doesn't it use the swap device?
> (Yes, it's mounted from fstab)

        Did you figure out why no more windows could be opened?  There
are a few reasons I can think of:

        1) You're out of pty's -- I think there are only 16 for Linux
           and no one ever answers questions on how to increase them.

        2) You're out of processes.  64 is the max number the standard
           Linux distribution can have open.  I think this can be
           adjusted with NR_TASKS in include/linux/tasks.h and
           recompiling the kernel.  (There might be other things
           to do, so search the archives or repost for instructions).

Other things that may not be as you think:

        3) You didn't install the swap correctly.  It's not mounted,
           but swapon'ed.  A command 'swapon -a' will activate all
           the swap files in /etc/fstab.  Check this with free, which
           should report something like (this is the kmem free)

              size       used      cache       free     shared
memory:      15284       3748      10832        704       2540
swap0:       10396          0                 10396          0
total:       25680       3748      10832      11100       2540

        4) You're reading used and free space wrong.  (Kmem) Used is the
           measure of how much is used by the processes.  Free really
           includes the memory allocated to cache (which can be used by more
           processes).  Below is what /proc/meminfo says which matches
           the above free command.  You have to subtract buffers from
           the used to get the amount used by the processes.

        total:   used:    free:   shared:  buffers:
Mem:  15650816 14934016   716800  2592768 10547200
Swap: 10645504        0 10645504

           So in reality:

             Kmem free space = size - used
             Proc free space = total - ( used - buffers)

 
 
 

S3 Video Chipset/Swapping Problems

Post by Alan C » Wed, 15 Sep 1993 18:36:52



>    1) You're out of pty's -- I think there are only 16 for Linux
>       and no one ever answers questions on how to increase them.

Linux has loads of pty's dynamically allocated as needed. If you want
more use mknod to create some extra entries in /dev.

Alan

 
 
 

S3 Video Chipset/Swapping Problems

Post by Andrew R. Tef » Wed, 22 Sep 1993 01:00:41



Quote:>Following his advice on a related query, I inserted the following
>lines in my /etc/rc file:

>mkswap -c /dev/hda2 16500
>swapon -a

>and

>/dev/hda2 none swap defauts  in the /etc/fstab file.
>Would someone comment on why I had to insert these lines in those
>files? I would have expected to get by  just by the commands at
>partitioning time. Don't they have a lasting effect?

You don't need to do the mkswap in your /etc/rc. just the swapon.
This is pretty standard Unix operating procedure, nothing magical
here.

Quote:>If they don't, this should be mentioned in the FAQs

FAQ's are not the best documentation (highly overrated in my opinion).
Get a Unix book and perhaps one on general Unix system administration.
At any rate, it *is* in black and white in the FAQ, question VIII.09.
It says to put the swapon command in your rc file for specific devices,
which of course would have worked for you, and hints that you can do it
via the fstab as well. For that method you would have had to dig a bit
but then again it's a pretty normal Unixy thing to do.

Quote:>By the way fellows, it seems that any fear that not enough
>pty's are generated, that I had, seems to be unfounded. In another
>post, someone else mentioned that (naturally!) linux automatically
>generates as many pty's as it needs. This as I tried in vain to use
>mknod to generate more pty's for my xterms and emacses.

You do need to use mknod to make them but you don't have to do
anything in the kernel to allow you to use any set amount.

--

 
 
 

S3 Video Chipset/Swapping Problems

Post by John Wi » Wed, 22 Sep 1993 23:19:00


TR>>By the way fellows, it seems that any fear that not enough
TR>>pty's are generated, that I had, seems to be unfounded...
TR>                ...  ...   ...
TR>You do need to use mknod to make them but you don't have to do
TR>anything in the kernel to allow you to use any set amount.

That's not really true, you are limited by the PID slots, if you have
16 xterm's open, it's likely you're near the end of your PIDs by then,
if you're doing anything in those windows.

 
 
 

1. Help with new S3 video card: S3: Unknown S3 chipset chip_id = 0x31e1 rev. 61

Hello,

For a friend without internet i do have a question.
He has a new bought S3 PCI 2MB (i thought a Trio64) video card and want to
run X now :)

When trying to start X he gets the message:

<snip>
(--) S3: Mode "400x300" needs hsync freq of 48.08 kHz. Deleted.
(--) S3: Mode "480x300" needs hsync freq of 39.56 kHz. Deleted.
(--) S3: Mode "480x300" needs hsync freq of 48.00 kHz. Deleted.
(**) FontPath set to
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi(--)
S3: Unknown S3 chipset:
chip_id = 0x31e1 rev. 61

 *** None of the configured devices were detected.***

Does anyone know what could be the problem here?

Thanks,

Arjan Filius

--------------------------------------------------------------
Argh!  All right, so how am I supposed to work with Linux when
everything's already been done?!  Can't these people leave some
broken MSDOS like parts so there's problems left to solve!?....

2. Something like NSS on AIX

3. S3 S3 S3 X X X S3 S3 S3

4. Printing with Konqueror 2.2.1 (KDE 2.2.1)

5. S3 765V+ video chipset

6. socket's recv not recieving what is expected

7. (Q) Video Chipset: S3 "Trio 32"

8. Can Gnome Applets be run under KDE?

9. Setting up X with RedHat 4.0 and an S3 video chipset

10. s3-968 chipset family video cards

11. S3 unknown video chipset

12. S3 ViRGE Video Chipset

13. PPC6400 w/Internal Video & Mactell S3 Video -- gdm problems