我应该在这台机器上运行多少个线程?
我lscpu
说有 96 个内核。那些是物理核心吗?我可以在这台机器上运行的最大和最佳线程是多少?
/sf/answers/746930831/表明我可以在每个内核上运行 20 多个线程。可以吗?那是最优的吗?
alvas@server:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 96
On-line CPU(s) list: 0-95
Thread(s) per core: 2
Core(s) per socket: 12
Socket(s): 4
NUMA node(s): 4
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Model name: Intel(R) Xeon(R) CPU E5-4657L v2 @ 2.40GHz
Stepping: 4
CPU MHz: 2700.000
CPU max MHz: 2900.0000
CPU min MHz: 1200.0000
BogoMIPS: 4801.91
Virtualization: VT-x
L1d cache: 32K
L1i …
Run Code Online (Sandbox Code Playgroud) 我想在 12.04 上删除并重新安装 python2.7 解释器
但是当我这样做时sudo apt-get remove python2.7
,疯狂的终端开始删除所有内容!!!知道如何恢复我删除的任何内容吗?
我可以做一个su
,su <username>
它会询问我的密码。是否有密码参数以便su
我不会被提示输入密码?
例如 su <username> -p <password>
我能够在du -h directoryname
. 但是有没有办法在不列出其中的文件/目录的情况下获得大小?
我目前正在这样做:
du -h directoryname | tail -n1
Run Code Online (Sandbox Code Playgroud)
如何保留目录大小的索引?是否有 Ubuntu 应用程序/软件?
我正在尝试为 python3.x 安装 scipy,我正在尝试使用 pip3 安装它
sudo pip3 install scipy
Run Code Online (Sandbox Code Playgroud)
但我有以下错误:
Downloading/unpacking scipy
Running setup.py (path:/tmp/pip_build_root/scipy/setup.py) egg_info for package scipy
warning: no previously-included files matching '*_subr_*.f' found under directory 'scipy/linalg/src/id_dist/src'
no previously-included directories found matching 'scipy/special/tests/data/boost'
no previously-included directories found matching 'scipy/special/tests/data/gsl'
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.bak' …
Run Code Online (Sandbox Code Playgroud) Tensorflow 是一个数值计算软件http://tensorflow.org/get_started/os_setup.md#binary_installation
安装说明只是pip install
在 Ubuntu 上说,但我收到以下错误:
$ sudo -H pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
Run Code Online (Sandbox Code Playgroud)
我的 Ubuntu 版本:
alvas@ubi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Run Code Online (Sandbox Code Playgroud)
我的内核:
$ uname -a
Linux ubi 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
关于如何在 ubuntu 中安装 tensorflow 或解决平台问题的任何线索?
我已经完成了以下命令来设置 LD_PRELOAD 的路径。但这是错误的路径。
export LD_PRELOAD=/home/
Run Code Online (Sandbox Code Playgroud)
有谁知道 Ubuntu 12.04 上 LD_PRELOAD 的默认路径是什么?重置导出的确切命令是什么?
从https://askubuntu.com/a/159371/63298执行这些命令后,它删除了我的sources.list
,当我这样做时sudo apt-get upgrade
,它要求我自动删除丢失的包。
我如何source.list
从 中恢复我的source.list.backup
?现在我的source.list.d
是一个目录而不是一个列表。
我意识到我的服务器运行了许多进程lightdm
:
我可以从 lightdm 中杀死所有进程吗?
是否sudo killall -u lightdm
安全?