به نام خداوند مهربان

۵ مطلب در اسفند ۱۴۰۲ ثبت شده است

 

The nvidia-smi tool can access the GPU and query information. For example:

 

> nvidia-smi
Fri Nov 11 02:08:18 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.61.05    Driver Version: 520.61.05    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0 Off |                  N/A |
| 50%   61C    P2   301W / 350W |  23683MiB / 24576MiB |     69%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A   2747694      C   python                          23680MiB |
+-----------------------------------------------------------------------------+

 

 

  • حسن دلدار

Re-download with wget's -c (--continue):

wget -c https://ftp.fastsite.edu/images/bigimage.iso
  • حسن دلدار

Open a terminal and run sudo umount /tmp or, if that fails, sudo umount -l /tmp

and then:

sudo mount -t tmpfs -o size=7G,mode=1777 overflow /tmp

sudo mount -t tmpfs -o size=7G,mode=1777 overflow /dev/tmp

or

mount -o remount,size=5G /tmp/

 

print size of /tmp:

df -h /tmp

 

 

  • حسن دلدار

Connect your phone to PC via USB and then open a CMD (asume adb is installed):

List devices:

adb devices

 

To list all packages:
adb shell  pm list packages

 

For remove a package:

adb shell pm uninstall -k --user 0 com.android.chrome

or

adb uninstall --user 0 com.android.chrome
 

To open an ADB shell:

adb shell 

 

List all of the currently installed packages:

pm list packages

 

Uninstall the app(s):

pm uninstall -k --user 0 package name

ex:

pm uninstall -k --user 0 com.google.android.youtube

 

Change directory:

cd /storage/self/primary/Download

 

Install an apk:
pm install -r --user 0 com.android.chrome.apk

 

  • حسن دلدار

واسط ارتباطی بین برنامه ها و سیستم عامل در Android  را ABI گویند که دو مورد از مهمترین ABI ها : arm64-v8a و armeabi-v7a می باشد.

گوشی Xiaomi Redmi 4 (4X)  از نوع arm64-v8a می باشد. 
Supported ABIs table 1 from https://developer.android.com/ndk/guides/abis

  • حسن دلدار