rbonghi / jetson_stats

📊 Simple package for monitoring and control your NVIDIA Jetson [Orin, Xavier, Nano, TX] series
https://rnext.it/jetson_stats
GNU Affero General Public License v3.0
2.17k stars 264 forks source link

I cannot control jtop on page 4MEM to alter the swap file on Jetson NX #65

Closed Philliec459 closed 4 years ago

Philliec459 commented 4 years ago

Describe the bug I have been running jtop for about 2 weeks now on my Jetson NX on Jetpack 4.3. It works great, but on the 4MEM page I now have no control of the swap space. I could swear in the beginning I could change the swap file size and enable/disable, but now I cannot get out of Extra/Swap and Status/Enabled. I now have a 8GB swap file and 4GB of zram working with 6 CPU's. I have tried to cut back on the swap file to 4GB, but I can't seem to make any changes.

I have tried sudo jtop --restore , but that did not help.

I would appreciated any advice on how to handle this.

Philliec459 commented 4 years ago

I uninstalled jtop and then got rid of the swap file per the following link:

https://stackoverflow.com/questions/43301858/how-to-delete-swap-file-in-ubuntusudo

swapoff -a -v sudo rm /swapfile

back up /etc/fstab:

sudo cp /etc/fstab /etc/fstab.bak sudo sed -i '/\/swapfile/d' /etc/fstab

I then reinstalled jetson_stats and now I am back to normal with Extra Swap disabled and page 4MEM looking like it did before.

rbonghi commented 4 years ago

Hi @Philliec459 ,

I apologise for my late reply. Yes, you follow a proper way to disable the swap, you can use as well another tool already included in jetson-stats.

jetson_swap -d [directory] -n [name] --off

Will do the same line that you post

Can send me next time a screenshot, if you have again this bug? I would like to fix, but I can't reproduce otherwise.

Philliec459 commented 4 years ago

Thank you.

I think the problem is that I have added a SSD and everything is now on SSD exept for what is needed to boot from micro SD card.

In the process on the old SD was a swfile swapfile. jtop was looking at that and not the swapfile on the SSD. Once deleting the swfile on the SD jtop is behaving properly. However, if I do create an Extra Swap with jtop, will jtop be looking just at the SD card for a swap file or can we direct it to look at the new SSD card?

One other question. I love having access to the fan speed in jtop especially while training a model. Sometimes at the end of training the fan will automatically switch to 0. I am glad I have jtop to observe this, but is there a way to have the fan speed adhere to what we have in jtop?

Best Regards,


E. Craig Phillips CEO and Chief Petrophysicist Crested Butte Petrophysical Consultants

459 Cisneros Lane Crested Butte, CO 81224 USA Office: +1 970-343-0730 Mobile: +1 970-343-0730 email: craig@cbpetro.com Website: www.cbpetro.com GitHub: https://github.com/Philliec459

The information contained in this electronic message is confidential, it constitutes a profesional and/or industrial secret in terms of the current legislation, and is intended for its recipient only. If you receive this message by mistake or if you are not the recipient thereof, please notify the sender and destroy it.

La informacion contenida en este mensaje de datos es confidencial, constituye un secreto industrial y/o profesional en terminos de la legislacion vigente y se encuentra dirigida exclusivamente al destinatario indicado en dicho mensaje. Si usted recibe esta informacion por error o si usted no es el destinatario del mensaje, favor de notificar al emisor, y destruyalo.

On Jun 3, 2020, at 11:16 AM, Raffaello Bonghi notifications@github.com wrote:

Hi @Philliec459 https://github.com/Philliec459 ,

I apologise for my late reply. Yes, you follow a proper way to disable the swap, you can use as well another tool already included in jetson-stats.

jetson_swap -d [directory] -n [name] --off Will do the same line that you post

Can send me next time a screenshot, if you have again this bug? I would like to fix, but I can't reproduce otherwise.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rbonghi/jetson_stats/issues/65#issuecomment-638335499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSKYPEHP4IDJYSPXWRH26LRU2AOFANCNFSM4NRJC6IQ.

Philliec459 commented 4 years ago

I have now used jtop to add an additional 2GB of swap space and it is called swfile. jtop configured it for the new SSD (vs. the micro SD card that I still need to boot from). I used page 4MEM and clicked on 's' and it did disable the swap file and gave me the proper display to re-Enable swap and set the size of the swap file. This all working properly on the new SSD too. Thank you.

rbonghi commented 4 years ago

In the process on the old SD was a swfile swapfile. jtop was looking at that and not the swapfile on the SSD. Once deleting the swfile on the SD jtop is behaving properly. However, if I do create an Extra Swap with jtop, will jtop be looking just at the SD card for a swap file or can we direct it to look at the new SSD card?

I need to make a setup to test it. I can't reply right now, but I will check

One other question. I love having access to the fan speed in jtop especially while training a model. Sometimes at the end of training the fan will automatically switch to 0. I am glad I have jtop to observe this, but is there a way to have the fan speed adhere to what we have in jtop?

I think depends if jetson_clocks is disabled from another script

Philliec459 commented 4 years ago

Thank you for your reply. Jtop and the swap file are all working fine now that I removed the swfile from the micro SD card and now jtop’s swfile is on the SSD. It should be faster that way too.

I think you are right about jetson_clocks. During the etreme training the CPUs are running at 1.4Hz and at the end go back to 1.2Hz. This is when the fan turns off.

Best Regards,


E. Craig Phillips CEO and Chief Petrophysicist Crested Butte Petrophysical Consultants

459 Cisneros Lane Crested Butte, CO 81224 USA Office: +1 970-343-0730 Mobile: +1 970-343-0730 email: craig@cbpetro.com Website: www.cbpetro.com GitHub: https://github.com/Philliec459

The information contained in this electronic message is confidential, it constitutes a profesional and/or industrial secret in terms of the current legislation, and is intended for its recipient only. If you receive this message by mistake or if you are not the recipient thereof, please notify the sender and destroy it.

La informacion contenida en este mensaje de datos es confidencial, constituye un secreto industrial y/o profesional en terminos de la legislacion vigente y se encuentra dirigida exclusivamente al destinatario indicado en dicho mensaje. Si usted recibe esta informacion por error o si usted no es el destinatario del mensaje, favor de notificar al emisor, y destruyalo.

On Jun 3, 2020, at 1:00 PM, Raffaello Bonghi notifications@github.com wrote:

In the process on the old SD was a swfile swapfile. jtop was looking at that and not the swapfile on the SSD. Once deleting the swfile on the SD jtop is behaving properly. However, if I do create an Extra Swap with jtop, will jtop be looking just at the SD card for a swap file or can we direct it to look at the new SSD card?

I need to make a setup to test it. I can't reply right now, but I will check

One other question. I love having access to the fan speed in jtop especially while training a model. Sometimes at the end of training the fan will automatically switch to 0. I am glad I have jtop to observe this, but is there a way to have the fan speed adhere to what we have in jtop?

I think depends if jetson_clocks is disabled from another script

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rbonghi/jetson_stats/issues/65#issuecomment-638397571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSKYPAUPMQ537TZUEI3ZXLRU2MTPANCNFSM4NRJC6IQ.