Message boards :
Number crunching :
Raspberry Pi & Other SBC Computers Discussion Thread :)
Message board moderation
Previous · 1 . . . 9 · 10 · 11 · 12 · 13 · 14 · 15 . . . 26 · Next
Author | Message |
---|---|
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
Greetings, I have run into something completely weird... again. That script I posted worked just fine on my Pi #1 running on the SSD. I put it on the Pi again running on the MicroSD card this time. Now I get this error message: : not found 20: pi_temp.sh: pi_temp.sh: 32: pi_temp.sh: Syntax error: "fi" unexpected (expecting "do") I have googled this and am running into brick walls. Nothing is addressing the problem. One forum had a respondent telling the person with the same problem to enter his script into ShellCheck on another website. So I did... This is what it said is "wrong": $ shellcheck myscript Line 25: while [ true ] ; do ^-- SC2160: Instead of '[ true ]', just use 'true'. Line 28: echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r" ^-- SC2004: $/${} is unnecessary on arithmetic variables. ^-- SC2004: $/${} is unnecessary on arithmetic variables. $ So I made those changes and ran it again which did nothing about the error I am getting, I still get it. I am at a loss as to why the script worked on all 3 Pis yesterday and now won't work on my oldest Pi running differently than yesterday. It's like it's going from the "if" statements to the endif "fi" and not seeing the "while ... do" loop. Any suggestions would be greatly appreciated. By the way, this is all being done as a learning experience. Have a great day! :) Siran CAPT Siran d'Vel'nahr - L L & P _\\// Winders 11 OS? "What a piece of junk!" - L. Skywalker "Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath |
Brent Norman Send message Joined: 1 Dec 99 Posts: 2786 Credit: 685,657,289 RAC: 835 |
From this ... cpu_freq=/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq cpu_temp=/sys/class/thermal/thermal_zone0/temp if [ -e $cpu_freq ] ; then if [ -e $cpu_temp ] ; then while [ true ] ; do clk=$(cat $cpu_freq) cpu=$(cat $cpu_temp) echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r" sleep 5 done fi fi -------- First thing I would check is if the files exist that you are scanning by taking a look ... cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq cat /sys/class/thermal/thermal_zone0/temp |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
From this ... Hi Brent, That was the first thing I looked for. The files are there. Have a great day! :) Siran CAPT Siran d'Vel'nahr - L L & P _\\// Winders 11 OS? "What a piece of junk!" - L. Skywalker "Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath |
Chris904395093209d Send message Joined: 1 Jan 01 Posts: 112 Credit: 29,923,129 RAC: 6 |
My 3B+ had 2 tasks go into error status since Sunday. I have removed all OC changes I made before and am back to 1.4 GHz. When I made that change, and rebooted the Pi, and I looked at BOINC to make sure tasks etc. were running - and the the remaining (estimated) time for the 4 active tasks were going down between 3 - 6 seconds every second. Kinda strange I thought - but perhaps the Pi runs better at the factory 1.4 GHz setting. ~Chris |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
I am still running OK at 1.5Ghz running two tasks. I only errored out when I tried three. I also took out the 100Mhz OC on the gpu since I don't think I had any use for it. I haven't been able to see any trend in compute times for whether the OC is beneficial or not. The stats host trend line is still on a upward slope. But this host hasn't crunched all that many tasks yet. The run times between Arecibo VLAR and non-VLAR and BLC are so different just because of the difficulty that it is hard to tell whether the OC is doing anything. [Edit] I'm doing the Arecibo VLAR's in around 13 1/2 hours. The BLC tasks around 8 hours 10 or 20 minutes. Looking at Chris's and Siran's tasks for similar types I seem to be processing faster. Whether that is due to the OC or whether because I am only running two concurrent and they are running four concurrent, I don't know. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
I am still running OK at 1.5Ghz running two tasks. I only errored out when I tried three. I also took out the 100Mhz OC on the gpu since I don't think I had any use for it. I haven't been able to see any trend in compute times for whether the OC is beneficial or not. The stats host trend line is still on a upward slope. But this host hasn't crunched all that many tasks yet. The run times between Arecibo VLAR and non-VLAR and BLC are so different just because of the difficulty that it is hard to tell whether the OC is doing anything. Hi Keith, I'm only running 2 concurrent each too. No OC on any of my Pis. Have a great day! :) Siran CAPT Siran d'Vel'nahr - L L & P _\\// Winders 11 OS? "What a piece of junk!" - L. Skywalker "Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath |
Gary Charpentier Send message Joined: 25 Dec 00 Posts: 30692 Credit: 53,134,872 RAC: 32 |
From this ... A cut and paste into a terminal window on my Pi3B running Jessie has no issues with it. Might there be a hidden character lurking in your file? |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
From this ... Hi Gary, Hmmm... I don't know. I'll have to look. Thing is, I copied and pasted from the source just as I did with my post here. I think what I will do is copy from my post here and paste over what I have on the Pi right now. Thanks for the idea. :) Have a great day! :) Siran CAPT Siran d'Vel'nahr - L L & P _\\// Winders 11 OS? "What a piece of junk!" - L. Skywalker "Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath |
Tom M Send message Joined: 28 Nov 02 Posts: 5124 Credit: 276,046,078 RAC: 462 |
Perhaps this should go here? https://www.techrepublic.com/google-amp/article/this-raspberry-pi-rival-is-on-sale-now-odroid-n2-promises-more-speed-usb-3-0-android-9-pie-4k-video/ A proud member of the OFA (Old Farts Association). |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
Interesting. Don't like it doesn't have Wi-Fi connectivity. Not a drop-in replacement for the rpi3 in my location. I would have to upgrade the switch near it to have more ports so I could plug it in. So add another $40 to the cost and the project would end up costing over $100. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Tom M Send message Joined: 28 Nov 02 Posts: 5124 Credit: 276,046,078 RAC: 462 |
Interesting. Don't like it doesn't have Wi-Fi connectivity. Not a drop-in replacement for the rpi3 in my location. I would have to upgrade the switch near it to have more ports so I could plug it in. So add another $40 to the cost and the project would end up costing over $100. I have a "dongle" that plugs directly into an RJ-47 jack and into a USB port that gives the computer the impression it is "hardwired". It cost, I think $17. Tom A proud member of the OFA (Old Farts Association). |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
Your dongle would be useless. I don't have any more open wired ethernet ports to connect to. The only solution would be a USB to WiFi dongle and then you have to hope the distro has the dongle drivers. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Tom M Send message Joined: 28 Nov 02 Posts: 5124 Credit: 276,046,078 RAC: 462 |
Your dongle would be useless. I don't have any more open wired ethernet ports to connect to. The only solution would be a USB to WiFi dongle and then you have to hope the distro has the dongle drivers. I am sorry I misunderstood. I thought the "new" machine had an RJ-47 jack if it didn't have a Wifi connection. My mistake. Tom A proud member of the OFA (Old Farts Association). |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
The new Odroid SBC has a RJ-45 ethernet port. But I don't have any more ethernet ports near it to connect to. I would have to either run a new cable across half the house and two bedrooms to get to a router or switch. Or upgrade the fully occupied 5 port switch 3 inches away from the rpi3 SBC to an 8 port switch which obviously would be the easiest. There is the extra $40 buck in project cost I defined in my OP. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
The new Odroid SBC has a RJ-45 ethernet port. But I don't have any more ethernet ports near it to connect to. I would have to either run a new cable across half the house and two bedrooms to get to a router or switch. Or upgrade the fully occupied 5 port switch 3 inches away from the rpi3 SBC to an 8 port switch which obviously would be the easiest. There is the extra $40 buck in project cost I defined in my OP. Hi Keith, That's exactly what I did. I got an 8 port switch and now have my Win, Linux and 3 Pis connected. I could get 2 more Pis and really go to town. ;) On another note, the app_config.xml file I was using for the 1050 Ti will work on the Linux box with the card, correct? If so, I believe the file should go in the /etc/boinc-client directory where the cc_config.xml file is, also correct? I'd have to modify it to run 4 CPU and 1 GPU. I'll also need to figure out any modifications for the 1660 Ti too. :) Have a great day! :) Siran [edit] By the way, I set the Linux box BOINC to "No New Tasks". I remember that from when I didn't do that before. ;) [/edit] CAPT Siran d'Vel'nahr - L L & P _\\// Winders 11 OS? "What a piece of junk!" - L. Skywalker "Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath |
Brent Norman Send message Joined: 1 Dec 99 Posts: 2786 Credit: 685,657,289 RAC: 835 |
The app_config.xml goes in the seti project directory, not BOINC. |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
Yes, the app_config.xml file is the same no matter the OS. But the file goes into the project directory, NOT the BOINC directory. I have an 8 port switch connected to the router. All full. Which connects to a 5 port switch in another bedroom. All full. Which also connects to another 5 port switch in the living room. All full. For further expansion needs I really should replace both the 5 port switches to 8 ports. Probably should replace the 8 port switch on the router with a 16 port switch. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
The app_config.xml goes in the seti project directory, not BOINC. Hi Brent, I am not finding a projects directory at all. I only find the /etc/boinc-client directory and that is where cc_config.xml is located. I'm at a loss... :\ Have a great day! :) Siran [edit] I finally found it. It's in /var/lib/boinc... . Now I gotta wait to run outta WUs before putting the app_config.xml file there. Now I know where to go. :) [/edit] CAPT Siran d'Vel'nahr - L L & P _\\// Winders 11 OS? "What a piece of junk!" - L. Skywalker "Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
The app_config.xml goes in the seti project directory, not BOINC. Not sure which host you are referencing. A Linux host or a Pi host. Anyway, the projects directories are in the other boinc-client directory located at /var/lib/boinc-client/projects/setiathome.berkeley.edu. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
I finally found it. It's in /var/lib/boinc... . Now I gotta wait to run outta WUs before putting the app_config.xml file there. Now I know where to go. :) No you can put the file in there anytime. Don't have to run out tasks. Just drop the file in and then re-read config files from the Manager menu. Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
©2024 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.