Message boards :
Number crunching :
Raspberry Pi & Other SBC Computers Discussion Thread :)
Message board moderation
Previous · 1 . . . 22 · 23 · 24 · 25 · 26 · Next
Author | Message |
---|---|
Tom M Send message Joined: 28 Nov 02 Posts: 5124 Credit: 276,046,078 RAC: 462 |
I wonder if I should get a Raspberry PI and start it up on March 14? (You know, PI day). Tom 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 |
My Pi 3 gives Hi Gary, All 3 of my Pis read the same using ulimit. All 3 are running the same OS, the version that came with them on the MicroSD cards. I forget what it is off hand. :) Only 2 of the Pis needed to have the hard reboot done, the third was still running good. All 3 were still crunching SETI. 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: 30690 Credit: 53,134,872 RAC: 32 |
If all three are running identical stuff, that is interesting. You might want to run top on them every so often to see if there is a process that is using more and more RAM.My Pi 3 gives One unix admin trick is to keep a high priority shell logged in all the time so when normal methods fail, you hopefully have something that will respond to you. Gary |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
The original version of Raspian was based on Stretch. Now most Pi's are running Buster if they have been allowed to update. Could be the difference in OS' But I agree that max locked memory is concerning. This is what my Pi shows. I have never had any issues remoting into it or viewing it in BoincTasks. keith@midget:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7336 max locked memory (kbytes, -l) 65536 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7336 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited 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 |
Hi Gary, If all three are running identical stuff, that is interesting. You might want to run top on them every so often to see if there is a process that is using more and more RAM. I haven't a clue about "high priority shells". 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 |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
The original version of Raspian was based on Stretch. Now most Pi's are running Buster if they have been allowed to update. Could be the difference in OS' Hi Keith, I have no problem remoting into each Pi and BT has no problem with them either. Only 2 of the Pis exhibited the lack of memory allocation, the third one was ok. I haven't a clue on changing any of those values or even if it can be done. 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 |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
Set a higher max locked memory limit. ulimit -l 16384 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 |
Set a higher max locked memory limit. Hi Keith, pi@Rasbpi-1:~ $ ulimit -l 16384 bash: ulimit: max locked memory: cannot modify limit: Operation not permitted pi@Rasbpi-1:~ $ Oops! 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: 30690 Credit: 53,134,872 RAC: 32 |
Hi Gary, shell = terminal Information on priority for "normal" things. $ man nice $ man renice These can make a process more responsive but once in a while not enough. To get more responsive, "real time" things. $ man chrt but if you do set this make sure you don't issue any CPU intensive commands or you can crash/lock the system. Your job is now higher priority than some of the O/S itself and that can cause problems. Also with chrt you can set the science applications to idle priority so they don't run unless there really isn't anything else wanting to run. Okay on a Pi as there isn't any GPU work. Not so okay with GPU because the science has to respond to the GPU calls PDQ. |
Gary Charpentier Send message Joined: 25 Dec 00 Posts: 30690 Credit: 53,134,872 RAC: 32 |
Set a higher max locked memory limit. Just need a sudo in front of the ulimit command. |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
HI Siran, I would have thought by now you would have recognized that when you see an error message like this . . . it simply means you don't have privileges for the operation at your security level. sudo su ulimit -l 16384 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 |
HI Siran, I would have thought by now you would have recognized that when you see an error message like this . . . it simply means you don't have privileges for the operation at your security level. Hi Keith, Hey, I'm a relative noob. ;) The listing did not require the "sudo", so I did not think about using it to change a value. Usually commands are better at telling me that "sudo" is required; better clues. This one gave me no clue that "sudo" was required for this to work. ;) Another thing, too, that I have noticed here when someone helps someone with a problem is that most of the time they will put the "sudo" in the command line. As mentioned, the list did not require it so I did not assume the value change needed it. Perhaps I should just start assuming that from now on. You know, even when I look stuff up on the Internet, the command line examples will have the "sudo" in them. I don't know why I didn't think about the Internet when this happened. :( For some reason I thought it related to BOINC since BOINC was still running without a problem. Oh well. That's what I get for thinking... ;) Have a great day! :) Siran [edit] No change that I can see... pi@Rasbpi-1:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7345 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7345 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited pi@Rasbpi-1:~ $ [/edit] [edit2] I did the ulimit -a while still at "sudo su" and -l was change to the 16384 value. I closed the terminal and went back into it with my regular "security level" and I get the above list where -l has the 64 value and not 16384. I close terminal and open it and do the "sudo su" and the ulimit -a and get the list above where -l is 64. This tells me something is not changing... [/edit2] 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 |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
Set a higher max locked memory limit. Hi Gary, Please see my response to Keith. :) 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 |
Siran d'Vel'nahr Send message Joined: 23 May 99 Posts: 7379 Credit: 44,181,323 RAC: 238 |
Greetings, @Keith: Could this be why I could not get the value to change? rick@Minty-Winders:~$ ulimit --help Could the way that Linux is installed on the Pi and the fact that the Pi has a very limited amount of resources be why I could not get the value to change? 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 |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
Must be something strange about your installation. I just changed a bunch of ulimit parameters willy-nilly and had no issues and they all stuck. It does seem to only change the values for the current user profile. So that is why changing as root did not carry back to just user. keith@midget:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7336 max locked memory (kbytes, -l) 65536 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7336 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited keith@midget:~ $ ulimit -l 16384 keith@midget:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7336 max locked memory (kbytes, -l) 16384 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7336 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited keith@midget:~ $ [Edit] OK try this: su your username. Give your password. Now you are back at the username prompt. Then issue the ulimit command. NOW it will take the command and not give errors on permissions. keith@midget:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7336 max locked memory (kbytes, -l) 16384 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7336 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited keith@midget:~ $ keith@midget:~ $ su keith Password: keith@midget:~ $ ulimit -l 65536 keith@midget:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 7336 max locked memory (kbytes, -l) 65536 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7336 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited Seti@Home classic workunits:20,676 CPU time:74,226 hours A proud member of the OFA (Old Farts Association) |
Gary Charpentier Send message Joined: 25 Dec 00 Posts: 30690 Credit: 53,134,872 RAC: 32 |
Must be something strange about your installation. I just changed a bunch of ulimit parameters willy-nilly and had no issues and they all stuck. It does seem to only change the values for the current user profile. So that is why changing as root did not carry back to just user. Might just be the very simple if you change it as root, it only applies to new logins? Of course it really should be set in the .rc file so it survives a reboot. |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
Might just be the very simple if you change it as root, it only applies to new logins? Of course it really should be set in the .rc file so it survives a reboot. Sound advice to make the change permanent in the .rc file. 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 |
Greetings, Hi Keith, [Edit] OK try this: I tried it and this is what I got: pi@Rasbpi-1:~ $ su pi Password: pi@Rasbpi-1:~ $ sudo ulimit -l 16384 sudo: ulimit: command not found pi@Rasbpi-1:~ $ ulimit -l 16384 bash: ulimit: max locked memory: cannot modify limit: Operation not permitted pi@Rasbpi-1:~ $ In looking at this on the Internet, I saw something about .conf files and such for ulimit. I wonder if I could edit a file to change the -l value. Let me see what I can find. Have a great day! :) Siran [edit] Ok. In /etc/security is a folder called limits.d. The folder is empty. On the Internet I found that... ok example time. Near the bottom of this page shows what can be added to /etc/security/limits.d. I tell you what, this is getting WAY over my pay grade when it comes to doing stuff in Linux. ;) I'm thinking at this point that I should just leave things as is. I'm afraid I'd screw something up so bad that the Pi would no longer boot and stuff. [/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 |
ML1 Send message Joined: 25 Nov 01 Posts: 20372 Credit: 7,508,002 RAC: 20 |
In the news at the moment for the Raspberry Pi: Raspbian Buster Gets New Features in Big Update Enjoy! Happy cool crunchin', Martin See new freedom: Mageia Linux Take a look for yourself: Linux Format The Future is what We all make IT (GPLv3) |
Keith Myers Send message Joined: 29 Apr 01 Posts: 13164 Credit: 1,160,866,277 RAC: 1,873 |
I updated and saw nothing of interest or worth commenting about. Supposed to be a small change in Nautilus with the side panel. I never noticed what was supposed to be different. 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.