https://youtu.be/xL1QuxN_Aqcjust like topic, when ever I try to run the model block in jupyter lab, putty crashes. tried mobax, changed the internet also, nothing help.
Hi @qfur890416, did you mount extra swap memory and disable ZRAM per the DLI course instructions?
Can you keep an eye on the memory usage by running sudo tegrastats
in a separate terminal? If you are low on memory, you can also run sudo systemctl set-default multi-user.target
and reboot.
after set-default
I have one 2060 in my computer, is it possible for me run on PC?
Hi @qfur890416, from your tegrastats output, it doesn’t appear that you have swap memory mounted. Please follow these directions to mount swap:
Also, your idle memory usage appears to be a bit high. Please make sure that you have the desktop shutdown by running the following command and then rebooting your board:
sudo systemctl set-default multi-user.target
the whole model is set, but there’s another problem.
OSError Traceback (most recent call last)
in save(c)
37 # save image for category and update counts
38 def save(c):
—> 39 dataset.save_entry(camera.value, category_widget.value)
40 count_widget.value = dataset.get_count(category_widget.value)
41 save_widget.on_click(save)
/nvdli-nano/classification/dataset.py in save_entry(self, image, category)
66
67 if not os.path.exists(category_directory):
—> 68 subprocess.call([‘mkdir’, ‘-p’, category_directory])
69
70 image_path = os.path.join(category_directory, filename)
/usr/lib/python3.6/subprocess.py in call(timeout, *popenargs, **kwargs)
285 retcode = call([“ls”, “-l”])
286 “”"
→ 287 with Popen(*popenargs, **kwargs) as p:
288 try:
289 return p.wait(timeout=timeout)
/usr/lib/python3.6/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
727 c2pread, c2pwrite,
728 errread, errwrite,
→ 729 restore_signals, start_new_session)
730 except:
731 # Cleanup if the child failed starting.
/usr/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1293 errread, errwrite,
1294 errpipe_read, errpipe_write,
→ 1295 restore_signals, start_new_session, preexec_fn)
1296 self._child_created = True
1297 finally:
OSError: [Errno 12] Cannot allocate memory
From your tegrastats output, it still doesn’t appear that you have swap memory mounted. Please follow these directions to mount swap:
**
**
it says that i don’t have the rights
Instead of running the command /mnt/4GB.swap none swap sw 0 0
, you need to add to the end of /etc/fstab
file and reboot. You can edit /etc/fstab
with vi/vim or nano text editor like: sudo vi /etc/fstab
/etc/fstab: static file system information.
These are the filesystems that are always mounted on boot, you can
override any of these by copying the appropriate line from this file into
/etc/fstab and tweaking it as you see fit. See fstab(5).
/dev/root / ext4 defaults 0 1/swapfile swap swap defaults 0 0
how do i save the edit file
maybe I’m not clear enough, I’ve used “i” to enter ‘/mnt/4GB.swap none swap sw 0 0’ in ‘/etc/fstab’ and “esc” to quit edit mode, so then I have to use “:wq” to leave?
got stuck here, how do i exit?
@qfur890416 you may just want to install/use nano editor - it is easier to use.
You can run:
sudo apt-get update
sudo apt-get install nano
sudo nano /etc/fstab
Ok i have solved the problem and edit the file, however I can’t link to the jupyter lab now.
2021-08-23 17-14-59.mkv (3.5 MB)
@qfur890416 did you reboot your Nano and restart the container?