ps

实现 TensorFlow 多机并行线性加速

只愿长相守 提交于 2020-01-08 02:19:35
王佐,天数润科 深度学习 平台负责人,曾担任 Intel亚太研发中心Team Leader,万达 人工智能 研究院资深研究员,长期从事分布式计算系统研究,在大规模分布式 机器学习 系统架构、机器学习 算法 设计和应用方面有深厚积累。 在上一家公司就开始实践打磨一个深度优化的深度学习系统,当时从消除网络瓶颈,非凸优化,以及具体的深度学习算法等方面基于PaddlePaddle做了许多工作。目前公司主要深度学习算法都是跑在TensorFlow上,使用配置了GeForce GTX 1080的单机训练,一次完整的训练至少需要一周的时间,所以决定从优化TensorFlow多机并行方面提高算力。 为什么要优化 Tensorflow 多机并行 更多的数据可以提高预测性能[2],这也意味着更沉重的计算负担,未来计算力将成为AI发展的较大瓶颈。在大数据时代,解决存储和算力的方法是Scale out,在AI时代,Scale out也一定是发展趋势,并且大数据分析任务和AI/ML任务会共享处理设备(由于AI/ML迭代收敛和容错的特征,这两种任务未来不太可能使用统一平台),所以需要在分布式环境下优化资源配置[3],消除性能瓶颈。虽然现在TensorFlow能支持多机并行分布式训练,但是针对复杂网络,其训练速度反而不如单台机器[1]。目前已经有IBM[4]和Petuum[1]分别在其深度学习系统PowerAI

linux 常用指令记录(转载)

我与影子孤独终老i 提交于 2020-01-07 20:45:16
附上Linux命令大全手册 https://man.linuxde.net/ 1. 查进程ps ps命令查找与进程相关的PID号: ps a 显示现行终端机下的所有程序,包括其他用户的程序。 ps -A 显示所有程序。 ps c 列出程序时,显示每个程序真正的指令名称,而不包含路径,参数或常驻服务的标示。 ps -e 此参数的效果和指定"A"参数相同。 ps e 列出程序时,显示每个程序所使用的环境变量。 ps f 用ASCII字符显示树状结构,表达程序间的相互关系。 ps -H 显示树状结构,表示程序间的相互关系。 ps -N 显示所有的程序,除了执行ps指令终端机下的程序之外。 ps s 采用程序信号的格式显示程序状况。 ps S 列出程序时,包括已中断的子程序资料。 ps -t<终端机编号> 指定终端机编号,并列出属于该终端机的程序的状况。 ps u 以用户为主的格式来显示程序状况。 ps x 显示所有程序,不以终端机来区分。 最常用的方法是ps aux,然后再通过管道使用grep命令过滤查找特定的进程,然后再对特定的进程进行操作。 ps aux | grep program_filter_word ps -ef | grep tomcat 查找tomact相关进程 ps -ef | grep java | grep -v grep 显示出所有的java进程

ps钢笔抠图

坚强是说给别人听的谎言 提交于 2020-01-07 14:18:00
把图片从背景图转换为图层 选用钢笔来实现抠图 选一个锚点,然后以这个锚点出发,选出下一个锚点。如果是曲线,就选第二个锚点的时候,鼠标不放,上下左右移动,就可以生成想要的曲线条了,然后按住ALT键再点击一下点,就可以去掉一边,以此类推,直到扣完一圈。 可以按CTRL+Z撤回一步,再按就又恢复一步,反复这样。也可以按CTRL+SHIFT+Z就可以撤回多步,但是这个要自己设置成自己想要的快捷键,因为这个默认是其它快捷键,我自己设置的 按CTRL+回车键,把路径变成一个选区 按CTRL+SHIFT+I,反选 点击DELETE键删除不要的图片部分 再按CTRL+D取消选区就ok了 来源: CSDN 作者: Hanyinh 链接: https://blog.csdn.net/weixin_43871678/article/details/103868399

linux下杀死进程(kill)的N种方法

一曲冷凌霜 提交于 2020-01-07 05:37:58
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 常规篇 :  首先,用ps查看进程,方法如下: $ ps -ef …… smx 1822 1 0 11:38 ? 00:00:49 gnome-terminal smx 1823 1822 0 11:38 ? 00:00:00 gnome-pty-helper smx 1824 1822 0 11:38 pts/0 00:00:02 bash smx 1827 1 4 11:38 ? 00:26:28 /usr/lib/firefox-3.6.18/firefox-bin smx 1857 1822 0 11:38 pts/1 00:00:00 bash smx 1880 1619 0 11:38 ? 00:00:00 update-notifier …… smx 11946 1824 0 21:41 pts/0 00:00:00 ps -ef 或者: $ ps -aux …… smx 1822 0.1 0.8 58484 18152 ? Sl 11:38 0:49 gnome-terminal smx 1823 0.0 0.0 1988 712 ? S 11:38 0:00 gnome-pty-helper smx 1824 0.0 0.1 6820 3776 pts/0 Ss 11:38 0:02 bash

关于PS 由于非法拷贝DR4而闪退无法使用的教程

让人想犯罪 __ 提交于 2020-01-04 22:39:42
现象:打开ps会跳出以下告示。点击确定或者x都会关闭ps。 解决方法: 1.下载这个工具,文末放连接如果挂掉可以在我的csdn资源里找。 2.打开这个页面,安装。 3.重启PS。 4.找到dr4的自动更新,关闭更新。防止下一次锁定。 最后感谢贴吧大佬。 https://www.52pojie.cn/thread-731631-1-1.html 资源:链接:/s/1QQfCeBQGFVRJ4iHlEEapOQ 密码:5yr2 来源: CSDN 作者: 猫鼬桑 链接: https://blog.csdn.net/weixin_41596347/article/details/103837886

打印流------PrintStream

喜你入骨 提交于 2020-01-04 15:45:46
代码: package cn.tedu.io.print; import java.io.FileNotFoundException; import java.io.PrintStream; public class PrintDemo { public static void main(String[] args) throws FileNotFoundException { //创建打印流的对象—把要打印的信息放到一个输出流中 PrintStream ps=new PrintStream(“D:\2.txt”); //打印信息—到一个文件中 ps.print(“abc”); ps.print(2);//没有换行 //换行—在信息打印之后换行 ps.println(“123”); //关流 ps.close(); } } 代码图: 来源: CSDN 作者: 佳乐一百 链接: https://blog.csdn.net/qq_45453185/article/details/103832453

how do you get window ID for xdotool automatically

﹥>﹥吖頭↗ 提交于 2020-01-04 04:30:27
问题 I am trying to automate testing forms that selenium would take too long (javascript heavy modern forms), and I want to use xdotool and get window IDs. I see you can call xdotool selectwindow and click it, but then you have to click it each time. I want to tell it "for google chrome windows where the tab title is x, do y" I got the window ID here: cchilders@cchilders-Dell-Precision-M3800:~$ xdotool selectwindow 65011713 This is for chrome itself, each tab gets the same value when clicked. So I

GeckoWebBrowser 实现网页打印 html打印 去掉页眉页脚 页头页尾

别来无恙 提交于 2020-01-03 06:13:05
管理GeckoFx PM> Install-Package Geckofx45 -Version 45.0.34 GeckoWebBrowser geckoWebBrowser; public Form1() { InitializeComponent(); Xpcom.Initialize("Firefox"); geckoWebBrowser = new GeckoWebBrowser { Dock = DockStyle.Fill }; this.Controls.Add(geckoWebBrowser); geckoWebBrowser.Navigate("www.baidu.com"); } nsIWebBrowserPrint print = Xpcom.QueryInterface<nsIWebBrowserPrint>(geckoWebBrowser.Window.DomWindow); var service = Xpcom.GetService<nsIPrintSettingsService>("@mozilla.org/gfx/printsettings-service;1"); var ps = service.GetNewPrintSettingsAttribute(); ps.SetTitleAttribute(SystemSetting

Bash script counting instances of itself wrongly

拜拜、爱过 提交于 2020-01-02 06:24:31
问题 I've created a bash script which counts launched instances of itself. Here it is (in this example, I'm showing the instances rather than counting them with wc -l ) : #!/bin/bash nb=`ps -aux | grep count_itself.sh` echo "$nb" sleep 20 (Of course, my script is named count_itself.sh ) Upon executing it, I expect it to return two lines, but it returns three : root@myserver:/# ./count_itself.sh root 16225 0.0 0.0 12400 1176 pts/0 S+ 11:46 0:00 /bin/bash ./count_itself.sh root 16226 0.0 0.0 12408

How can I get process name of specific PID with ps command in alpine

此生再无相见时 提交于 2020-01-02 04:27:07
问题 In ubuntu based docker/os $ ps PID USER TIME COMMAND 1 postgres 0:00 postgres 47 postgres 0:00 postgres: checkpointer process 48 postgres 0:00 postgres: writer process 49 postgres 0:00 postgres: wal writer process 50 postgres 0:00 postgres: autovacuum launcher process 51 postgres 0:00 postgres: stats collector process 52 postgres 0:00 postgres: bgworker: logical replication launcher Now If run ps -p 1 -o user= , it will get me PID 1 process USER postgres $ ps -p 1 -o user= postgres This is