Greetings everybody; I have 2 questions today, but to put them in context, I'll describe the setup first. I am in the process of cnc'ing an old Sheldon metal lathe. These can make large amounts of flying metal chips & stringers when doing what they do, so its paramount that the electronics to run them are either far enough away, or put in a box thats well sealed, with fans in the box to distribute the heat, and a fan blowing on the box to cool its surface. So the motor supplies and motor drivers are in the box, and supply their own fans, leaving room on the inside of the door for the controlling interfaces and two SBC's: A Raspberry pi 3b (4 core arm64 @ 1.2GHz, and a gig of ddr3 ram) to run the program, called LinuxCNC. And an odroid64-c2, faster 4 core arm64, 2GB of ram, which should handle the graphical duties of controlling the program as it claims to be able to drive a 4k display at 30 FPS. I have tried running X on the raspi, but it hasn't enough memory or iron to do it well. With only a gigabyte of ram and running from a u-sd card for a boot drive, there is a hint of OOM to its failures. Running htop on the odroid, its not x but sshd thats the bottleneck thats causing the odroid to render at 3 or 4 frames per second at whatever the default encryption was. Last night, I went around and converted all my /etc/ssh/ssh_config's to: cipher chacha20-poly1305 at openssh.com This got me up to maybe 8 frames a second. My current networking test setup has several devices, hubs and switches in the data path between the SBC's but will only have about a 50 foot cable to a gigabit switch in the final lashup from each SBC. There's another cnc'd machine there that also needs net access to keep it up to date. I am not too worried about being penetrated, a router running dd-wrt is between me and the net modem, and has been for several years. No one has come thru it except to my web page, on this machine. url in the sig. So my two questions are: Is there a faster thru-put yet encryption, like none? How can I query the running ssh setup to see what encryption it is actually using? Thank you, all. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
Gene Heskett wrote:> the inside of the door .. two SBC's:..> I have tried running X on the raspi, but it hasn't enough memory or > iron to do it well.A GHz system with GB of RAM is certainly capable of running a well-written GUI effortlessly.> Running htop on the odroid, its not x but sshd thats the bottleneck > thats causing the odroid to render at 3 or 4 frames per secondWhy are you running X through SSH? Run X directly over the network instead; that is literally what it is made for. (Set DISPLAY on pi with odroid IP. Run xauth +pi on odroid. Start X programs on pi.) But again: I guess the real problem is somewhere else entirely. //Peter
On Saturday 26 November 2016 19:25:41 Peter Stuge wrote:> Gene Heskett wrote: > > the inside of the door .. two SBC's: > > .. > > > I have tried running X on the raspi, but it hasn't enough memory or > > iron to do it well. > > A GHz system with GB of RAM is certainly capable of running a > well-written GUI effortlessly. > > > Running htop on the odroid, its not x but sshd thats the bottleneck > > thats causing the odroid to render at 3 or 4 frames per second > > Why are you running X through SSH? Run X directly over the network > instead; that is literally what it is made for. > > (Set DISPLAY on pi with odroid IP. Run xauth +pi on odroid. Start X > programs on pi.)Hmm, learning something new like most days: sample/example cli? Something like export DISPLAY 192.168.xx.9:10:0 on the pi, and xauth +raspi on the odroid? ; >> But again: I guess the real problem is somewhere else entirely.I have the X manpage up on the odroid and I am logged into the pi too. From that manpage I should set and export DISPLAY to hostname:displaynumber.screennumber, so on the pi setenv DISPLAY odroid:12.0 or DISPLAY = odroid:12.0 export DISPLAY>this on the raspi on the odroid64 xauth +raspi then to conserve keyboards, log into raspi, and start my x using program Have I got it right? The reason for the 12 is that as I am logged into the odroid twice right now, so screens 10 and 11 are already in use with my ssh -Y logins and I asumme I can't re-use a display number. Or should I re-use the display number, and enum the screen number some how? Obviously this is something I've never done before. I would also assume the ssh login would be without any -X or -Y options. So Plz clarify. If this gets rid of most or all of the lag, I'll be in hog heaven. Thanks Peter. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>