Jerky mouse cursor under Solaris 2.5

Jerky mouse cursor under Solaris 2.5

Post by Brian L. Bru » Sat, 30 Mar 1996 04:00:00



        My machine started to suffer from a jerky mouse cursor when I moved from
SunOS 4.1.3U1 to Solaris 2.5.  The problem occurs under OpenWindows, CDE, and
X11R6.  It is intermittent and seems unaffected by restarting the window system.
        The machine is an IPC with 36 MB of RAM and a GX frame buffer.  I tried
both a new mouse and a Turbo GX frame buffer and had the same problem.  No patches
have been applied to the system.
        Has anyone else experienced this problem?  Is there a solution?

--Brian

 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Dave Ba » Sat, 30 Mar 1996 04:00:00




Quote:>        My machine started to suffer from a jerky mouse cursor when I
>moved from SunOS 4.1.3U1 to Solaris 2.5.  The problem occurs under
>OpenWindows, CDE, and X11R6.  It is intermittent and seems unaffected
>by restarting the window system.  The machine is an IPC with 36 MB of
>RAM and a GX frame buffer.  I tried both a new mouse and a Turbo GX
>frame buffer and had the same problem.  No patches have been applied
>to the system.
>        Has anyone else experienced this problem?  Is there a solution?

I too have encountered this, and as far as I can determine it is
a bug/inefficiency in the STREAMS code or socket layer.

I've been able to trigger this slowdown when initiating a download
on my Linux box at home from my Solaris 2.5 box.   My Linux box
is on the other end of a 14.4 PPP connection.  While the download
is going on, the mouse gets jerky.

I also see slowdowns during background processing of exmh.  (the
two communicate with each other via tcl/tk's 'send')  My mouse will
become jerky, and then be OK.  This is on a 32MB SS5/70.

--Dave

 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Richard Pettit [Enginee » Sat, 30 Mar 1996 04:00:00





>>        My machine started to suffer from a jerky mouse cursor when I
> it is
>a bug/inefficiency in the STREAMS code or socket layer.

You will see jerky mouse activity under heavier-than-normal paging situations
or heavier-than-normal interrupt activity (one of the causes of which is the
first scenerio).  Both of the machines discussed in these articles are light
on memory.

If the OS is right on the fringe of lotsfree, you can fix it by setting
lotsfree to a lower value in the /etc/system file (don't do this unless you
understand the ramifications of changing VM parameters).

The "optimal" solution is to add more memory.  But that's the solution to a
lot of problems in UNIX :-).

Rich
+-                  +                  --              +                      -+

SMCC Engineer       | "Macrosolutions to Megaproblems" | Encino, CA 91436

 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Dave Ba » Sat, 30 Mar 1996 04:00:00







>>>        My machine started to suffer from a jerky mouse cursor when I
>> it is
>>a bug/inefficiency in the STREAMS code or socket layer.

>You will see jerky mouse activity under heavier-than-normal paging situations
>or heavier-than-normal interrupt activity (one of the causes of which is the
>first scenerio).  Both of the machines discussed in these articles are light
>on memory.

Nope.  My jerky mouse behavior is going on while the disk is completely
quiet.

As far as "heaver than normal interrupt activity", no to that too.
All other devices are quiet.

--Dave

 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Pat Monar » Mon, 01 Apr 1996 04:00:00




>same thing happening.  It seems to be related to sending data OUT
>rather than in, but it does not seem to have anything to do

This is interesting. I run DCE on Solaris 2.5 on a Sparc 2
and I dont get the jerky mouse. On a dual processor Sparc 20,
I do. And the Sparc 20 is not loaded down. I will check to
see if I am getting interrupts but the load average rarely
goes past 1. Now both /usr/openwin and /usr/dt are local on
both systems. But my home dir disks are on the Sparc 2.
Could it be related to certain .dt.. files being NFS mounted?

Quote:>I have a feeling that something in the bowels of the OS is
>locks something for too long.....

This seems like wisdom

>--

>Underemployed, and trying to keep it that way....

This too...
 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Richard J. Aulet » Tue, 02 Apr 1996 04:00:00



: This is interesting. I run DCE on Solaris 2.5 on a Sparc 2
: and I dont get the jerky mouse. On a dual processor Sparc 20,
: I do. And the Sparc 20 is not loaded down. I will check to

I see this "drunken mouse" syndrome on a stand alone SS20 with 64meg but
only when netscape is running. Have not really noticed what netscape navigator
is doing at the time, and if it was connecting to the local httpd or
a remote site, stalled or what.

-Rich Auletta

 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Andrew R. Tef » Fri, 05 Apr 1996 04:00:00




Quote:>        My machine started to suffer from a jerky mouse cursor when
>I moved from SunOS 4.1.3U1 to Solaris 2.5. The problem occurs under
>OpenWindows, CDE, and X11R6. It is intermittent and seems unaffected by
>restarting the window system.

I noticed the same thing on a Creator I had here for a demo.
I was very disappointed because earlier I had had a non-creator
Ultra for a demo and it didn't have this problem.

What turned out to be my problem was that a swap file had been
added to increase the swap space. I didn't really need the extra
swap and turned off swapping to the file, and it cleared right up.

--


 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Vartan Narini » Fri, 05 Apr 1996 04:00:00



Quote:

>I see this "drunken mouse" syndrome on a stand alone SS20 with 64meg but
>only when netscape is running.

I think it happens when the X server is scaling fonts or something like
that.

--
Vartan

 
 
 

Jerky mouse cursor under Solaris 2.5

Post by Juergen Ke » Wed, 10 Apr 1996 04:00:00


In article <4ji0db...@augusta.math.psu.edu> b...@math.psu.edu (Dave Barr) writes:
> In article <4jhqhr$...@newsworthy.West.Sun.COM>,
> Richard Pettit [Engineer] <ri...@valley.West.Sun.COM> wrote:
> >In article <4jhk24$...@augusta.math.psu.edu>, b...@math.psu.edu (Dave Barr) writes:
> >>In article <4jhcis$...@mother.usf.edu>,
> >>Brian L. Brush <bbr...@acomp.usf.edu> wrote:
> >>>        My machine started to suffer from a jerky mouse cursor when I
> >> it is
> >>a bug/inefficiency in the STREAMS code or socket layer.

> >You will see jerky mouse activity under heavier-than-normal paging situations
> >or heavier-than-normal interrupt activity (one of the causes of which is the
> >first scenerio).  Both of the machines discussed in these articles are light
> >on memory.

> Nope.  My jerky mouse behavior is going on while the disk is completely
> quiet.

> As far as "heaver than normal interrupt activity", no to that too.
> All other devices are quiet.

The 'tcp.c' program appended below reproduces such a problem (on all sunos
5.5 systems).

Compile it with 'gcc -O -o tcp tcp.c -lsocket -lnsl'.

In a terminal window start the receiving side of the program with 'tcp'.
In a second window, start the sending side with 'tcp -s localhost'.  Move
the mouse while both programs are running and transfering data.  Each time
the receiving side sleeps/blocks for 5 seconds, you'll notice the jerky
mouse cursor!

The bug also happens when the receiving side is running on another machine
in the network (doesn't need to be a sunos 5.5 system).

-----tcp.c-----------------------------------------------------------------

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

extern int optind;
extern char *optarg;

void
usage()
{
        fprintf(stderr, "usage: [-d sec] [-p port] [-s host]\n");
        fprintf(stderr, "\t-d: delay in seconds after receiving 1M of data\n");
        fprintf(stderr, "\t-p: port\n");
        fprintf(stderr, "\t-s: send data to host, without -s receive data\n");
        exit(1);

}

int
main(argc, argv)
char **argv;
{
        int c, i, n;
        int total, kb, last_kb_printed;
        int delay_kb;
        char *host = "localhost";
        int port = 4711;
        int delay = 5;
        enum { SEND, RECV } mode = RECV;
        int s;
        struct hostent *he;
        struct sockaddr_in sin;
        int sin_len;
        char buf[8192];

        while ((c = getopt(argc, argv, "d:p:s:")) != -1) {
                switch (c) {
                case 'p':
                        port = atoi(optarg);
                        break;
                case 's':
                        host = optarg;
                        mode = SEND;
                        break;
                case 'd':
                        delay = atoi(optarg);
                        break;
                default:
                        usage();
                }
        }

        if (argv[optind]) usage();

        s = socket(AF_INET, SOCK_STREAM, 0);
        if (s < 0) {
                perror("socket AF_INET");
                exit(1);
        }
        if (mode == SEND) {
                he = gethostbyname(host);
                if (he == NULL) {
                        fprintf(stderr, "host %s unknown\n", host);
                        exit(1);
                }

                memset(&sin, 0, sizeof(sin));
                sin.sin_family = AF_INET;
                sin.sin_port = htons(port);
                memcpy(&sin.sin_addr, he->h_addr, he->h_length);
                if (connect(s, (void *)&sin, sizeof(sin)) < 0) {
                        perror("connect");
                        exit(1);
                }
                for (total = last_kb_printed = 0;;) {
                        n = write(s, buf, sizeof(buf));
                        if (n < 0) {
                                perror("write");
                                exit(1);
                        }
                        total += n;
                        kb = total >> 10;
                        if (kb != last_kb_printed) {
                                printf("\r%d", kb);
                                fflush(stdout);
                                last_kb_printed = kb;
                        }
                }
        } else {
                memset(&sin, 0, sizeof(sin));
                sin.sin_family = AF_INET;
                sin.sin_port = htons(port);
                sin.sin_addr.s_addr = htonl(INADDR_ANY);
                if (bind(s, (void *)&sin, sizeof(sin))) {
                        perror("bind port");
                        exit(1);
                }
                if (listen(s, 5)) {
                        perror("listen");
                        exit(1);
                }

                printf("receive data, waiting for connection\n");

                if ((s = accept(s, (void *)&sin, &sin_len)) < 0) {
                        perror("accept");
                        exit(1);
                }
                delay_kb = 1000;
                for (total = last_kb_printed = 0;;) {
                        n = read(s, buf, sizeof(buf));
                        if (n < 0) {
                                perror("read");
                                exit(1);
                        }
                        if (n == 0) break;
                        total += n;
                        kb = total >> 10;
                        if (kb != last_kb_printed) {
                                printf("\r%d", kb);
                                fflush(stdout);
                                last_kb_printed = kb;
                        }
                        if (kb > delay_kb) {
                                sleep(delay);
                                delay_kb += 1000;
                        }
                }
        }

}

--
Juergen Keil          j...@tools.de ...!{uunet,mcsun}!unido!tools!jk
--
Juergen Keil          j...@tools.de ...!{uunet,mcsun}!unido!tools!jk
 
 
 

1. Jerky mouse cursor movement in XFree..

--
I just installed XFree86 2.1.1 from the Slackware disk 'x' set and ran it
after running xf86config.  When I ran startx, I got a blue screen and one
small box in the top-left corner of the screen.  Even worse, the mouse
cursor moves really jerky.  When I move the mouse to the left, the cursor
moves like 20 pixels to the left.  In other words, the mouse cursor moves
jerky, not smooth.

I have a Logitech serial mouse and had it configured to a Microsoft
compatible serial mouse.  Any suggestions?

Thanks,
-George

2. Packets Lost

3. 103640-02 fixes jerky mouse cursor caused by blocked TCP connections

4. Linux 2.4.20-pre3 (Athlon prefetch dibbles)

5. XFree jerky mouse cursor

6. possible to obtain header info from SOCK_STREAM socket?

7. Invisible cursor using WABI 2.1 (Solaris 2.5) and MS-Word for Windows

8. isa_virt_to_bus and co on Alpha

9. Mouse System PS2 mouse jerky in X

10. FS: Solaris 2.5 Desktop (CDE) and/or Solaris 2.5 Server Packages for x86 desktops

11. Solaris 2.5.1x86: how to emulate 3-button mouse?

12. Netscape mouse locks up under Solaris 2.5

13. Jumpy mouse under Solaris 2.5