Python中文
首页
教程
问答
标签
搜索
登录
注册
cpu/内存密集型TA的最佳(python)设置
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我在做模拟,生成数千个结果对象。 每个对象大小约为1mb,所有结果对象都应该在内存中,以便查询各种特殊报告。生成一个结果对象需要1~2秒。在</p> <p>因此,即使我完全使用四核cpu进行并行执行,也需要5分钟以上才能完成一次模拟。任务过程中一个模拟集需要4~5gb以上的内存。问题是,我想同时运行更多的模拟集,并且更快地完成。在</p> <p>目前,我正在WindowsVista64上使用c和ironpython来完成这项工作,这是一个四核cpu,内存为8g。我要订购一台新电脑,24GB内存,cpu更好,最终,我可能会购买多cpu和更多内存的工作站。在</p> <p>所以我的问题是,利用新硬件的最佳方式是什么? 我考虑下面的一个组合。在</p> <ol> <li>windows 64上的ironpython+c</li> <li>linux 64上的ironpython+c#(mono)</li> <li>windows 64上的jython+java</li> <li>linux 64上的jython+java</li> </ol> <p>模拟引擎是用c#/java编写的,我使用python编写报告。 你们觉得哪个组合最好?在</p> <p>net和java平台在处理内存消耗任务方面是否没有太大区别? windows和linux没有区别吗?在</p> <p>我有时会在我的ubuntu笔记本电脑(32位,2g内存)上运行我当前的c#+ironpython代码,感觉它与同规格硬件上的windows.net env相比似乎相当稳定。但我不知道什么时候底层硬件会更好。在</p> <p>我欢迎任何一种建议,不管以上的选择。在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>@Dave很有看头,如果你真的关心每一个组合的基准,看看。在</p> <p>就我个人而言,我建议你坚持使用你最熟悉的工具集,无论是Windows、Java、Linux、.Net或它们的任意组合。您在维护和开发软件方面的生产力水平通常胜过您从切换操作系统或虚拟机中获得的任何微小的性能增益。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
无法使用Django/mongoengine连接到MongoDB(身份验证失败)
3 回答
无法使用Django\u mssql\u后端迁移到外部hos
6 回答
无法使用Django&Python3.4连接到MySql
4 回答
无法使用Django+nginx上载媒体文件
8 回答
无法使用Django1.6导入名称模式
8 回答
无法使用Django1.7和mongodb登录管理站点
8 回答
无法使用Djangoadmin创建项目,进程使用了错误的路径,因为我事先安装了错误的Python
9 回答
无法使用Djangockedi验证CBV中的字段
10 回答
无法使用Djangocketditor上载图像(错误400)
2 回答
无法使用Djangocron进行函数调用
8 回答
无法使用Djangofiler djang上载文件
10 回答
无法使用Djangokronos
5 回答
无法使用Djangomssql provid
1 回答
无法使用Djangomssql连接到带有Django 1.11的MS SQL Server 2016
4 回答
无法使用Djangomssq迁移Django数据库
3 回答
无法使用Djangonox创建用户
10 回答
无法使用Djangopyodb从Django查询SQL Server
2 回答
无法使用Djangopython3ldap连接到ldap
2 回答
无法使用Djangoredis连接到redis
4 回答
无法使用Django中的FK创建新表
1 回答