无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3362|回复: 9
打印 上一主题 下一主题

bcdedit 如何配置ramdisktftpblocksize 、正确命令是什么??

[复制链接]
跳转到指定楼层
1#
发表于 2012-11-24 19:22:56 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
win2003平台编辑bcd/
想在现有的bcd中添加ramdisktftpblocksize
bcdedit /store  bcd /set {7619dcc9-fafe-11d9-b411-000476eba25f} ramdisktftpblocksize 8192
结果来是

H:\bcdmakeup> bcdedit /store  bcd /set {7619dcc9-fafe-11d9-b411-000476eba25f} ra
mdisktftpblocksize 8192
The element data type specified is not recognized, or does not apply to the
specified entry.
Run "bcdedit /?" for command line assistance.
找不到元素。

这条命令用错了?
谁能指正一下。

谢谢



H:\bcdmakeup>bcdedit /enum all /store bcd
Windows Boot Manager
--------------------
identifier              {bootmgr}
description             Windows Boot Manager
locale                  zh-CN
inherit                 {globalsettings}
default                 {default}
displayorder            {default}
toolsdisplayorder       {memdiag}
timeout                 30
Windows Boot Loader
-------------------
identifier              {default}
device                  ramdisk=[boot]\boot\boot.wim,{7619dcc8-fafe-11d9-b411-00
0476eba25f}
path                    \windows\system32\winload.exe
description             Win7 RE(PE)
locale                  zh-CN
inherit                 {bootloadersettings}
osdevice                ramdisk=[boot]\boot\boot.wim,{7619dcc8-fafe-11d9-b411-00
0476eba25f}
systemroot              \windows
winpe                   Yes
ems                     Yes
Windows Memory Tester
---------------------
identifier              {memdiag}
device                  boot
path                    \boot\memtest.exe
description             Windows Memory Diagnostic
locale                  en-US
inherit                 {globalsettings}
EMS Settings
------------
identifier              {emssettings}
bootems                 Yes
Debugger Settings
-----------------
identifier              {dbgsettings}
debugtype               Serial
debugport               1
baudrate                115200
Global Settings
---------------
identifier              {globalsettings}
inherit                 {dbgsettings}
                        {emssettings}
Boot Loader Settings
--------------------
identifier              {bootloadersettings}
inherit                 {globalsettings}
                        {hypervisorsettings}
Hypervisor Settings
-------------------
identifier              {hypervisorsettings}
description             Hypervisor Settings
hypervisordebugtype     Serial
hypervisordebugport     1
hypervisorbaudrate      115200
Device options
--------------
identifier              {7619dcc8-fafe-11d9-b411-000476eba25f}
ramdisksdidevice        boot
ramdisksdipath          \boot\boot.sdi
H:\bcdmakeup> bcdedit /store  bcd /set {7619dcc9-fafe-11d9-b411-000476eba25f} ra
mdisktftpblocksize 8192
2#
 楼主| 发表于 2012-11-25 14:30:50 | 只看该作者
本帖最后由 buypro 于 2013-8-29 19:42 编辑

还是自己回答吧
  1. 正确的命令是
  2. bcdedit /store c:\bcdmakeup\bcd /set {7619dcc8-fafe-11d9-b411-000476eba25f} ramdisktftpblocksize 16384
复制代码
此外ramdisktftpblocksize 最高值可达到16384
具体可参看MS网站

http://technet.microsoft.com/pt-pt/library/cc731245(v=ws.10).aspx
  1. We recommend that you increase this setting in multiples (4096, 8192, 16384, and so on) and that you not set a value higher than 16384.
复制代码
174M的wim 加载的时候 ramdisktftpblocksize 16384  纯下载wim文件的时间为13秒。千兆网络。


相当于10M/s的速度,这个速度看起来有点慢。瓶颈应该在dd-wrt外挂的sd 卡的读取速度过慢。

[ 本帖最后由 buypro 于 2012-11-25 14:55 编辑 ]
回复

使用道具 举报

3#
发表于 2012-11-26 10:47:45 | 只看该作者
标准写法:
bcdedit /store bcd /create {ramdiskoptions}
bcdedit /store bcd /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store bcd /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
bcdedit /store bcd /set {ramdiskoptions} ramdisktftpwindowsize 8192
回复

使用道具 举报

4#
 楼主| 发表于 2012-11-26 13:33:52 | 只看该作者
  1. We recommend that you increase this setting in multiples (4096, 8192, 16384, and so on) and that you not set a value higher than 16384.
复制代码


从这句话来看。应该还可以配置比16384更高的值。有空试一下

[ 本帖最后由 buypro 于 2012-11-26 13:35 编辑 ]
回复

使用道具 举报

5#
 楼主| 发表于 2013-8-29 19:01:19 | 只看该作者
本帖最后由 buypro 于 2013-8-29 19:35 编辑

bcdedit for win2003



注意blocksize 和网卡的配合问题
注意tftp remap的问题。

否则会导致无法找到bcd文件或者无法下载bcd文件

bcdedit4win2003.zip

77.53 KB, 下载次数: 6, 下载积分: 无忧币 -2

回复

使用道具 举报

6#
 楼主| 发表于 2013-8-29 19:40:36 | 只看该作者
  1. 优化pxe网启动时tftp的传输速度 --- 针对pxelinux和bootmgr
复制代码
默认的网络启动过程,网卡的使用率始终在10mbps以下徘徊,大部分情况下更低,一个3M大小的字体文件,都要拷贝好一会儿。加上参数后,网卡的利用率立刻飙升到40mbps上下,一般都不低于20Mbps。
  
下面是我的 bcdedit /store bcd /enum all 的部分输出:



[plain] view plaincopyprint?安装程序 Ramdisk 选项  
---------------------  
标识符                  {ramdiskoptions}  
ramdisksdidevice        boot  
ramdisksdipath          \BOOT\BOOT.SDI  
ramdisktftpblocksize    40960  
ramdisktftpwindowsize   100  

安装程序 Ramdisk 选项
---------------------
标识符                  {ramdiskoptions}
ramdisksdidevice        boot
ramdisksdipath          \BOOT\BOOT.SDI
ramdisktftpblocksize    40960
ramdisktftpwindowsize   100


其中可以看到 block size 设成了 40K。window size 设成了 100。
其中可以看到 block size 设成了 40K。window size 设成了 100。

block size 设成 40k 是为了配合udp封包的优化,虽然理论上可以到63k左右(64k - 包头结构),稍微留点余量还是比较稳妥的。 实际使用时,block size其实可以更大更随意,比如到1M大小,只是这是程序层的逻辑,到了UDP层还是自动拆分了。 这个地方选40k纯属经验,并没有对比过其他的数值并优化。



windows size 这个值其实比较随意,但只在较小的数值范围时,才满足正比关系(越大效率越高);超过一定的数值后,再大也没多大的意义了,而且效率有可能更低,甚至伴随更多的稳定性问题。

我一开始设置的是10,效果就很好了;后来为了对比下,就调成了100,发现100的效率跟10的效率,几乎没有啥区别,即便有提升,估计也就 百分之几顶多十几的提升。 其实这个地方10就足够了,我这儿是因为没啥区别,所以测试后没有改回来。

回复

使用道具 举报

7#
发表于 2013-8-29 20:13:20 | 只看该作者
我用这个改的

我测试下来window size 设成 100没有10的兼容性好

点评

看了你以上的那个帖子 请问这个方法适合启动wim格式的ramos ???  详情 回复 发表于 2013-8-30 07:06
ljycslg 你启动的过程是怎样的???下载速度多少?? 能写个菜单出来参考一下。 谢谢  详情 回复 发表于 2013-8-30 06:40
回复

使用道具 举报

8#
 楼主| 发表于 2013-8-30 06:37:47 | 只看该作者
本帖最后由 buypro 于 2013-8-30 06:41 编辑

-----------------------------------------------------------
回复

使用道具 举报

9#
 楼主| 发表于 2013-8-30 06:40:44 | 只看该作者
ljycslg 发表于 2013-8-29 20:13
我用这个改的

我测试下来window size 设成 100没有10的兼容性好

    ljycslg 你启动的过程是怎样的???下载速度多少??

    能写个菜单出来参考一下。
    谢谢
回复

使用道具 举报

10#
 楼主| 发表于 2013-8-30 07:06:25 | 只看该作者
本帖最后由 buypro 于 2013-8-30 07:08 编辑
ljycslg 发表于 2013-8-29 20:13
我用这个改的

我测试下来window size 设成 100没有10的兼容性好


在PXE服务器上部署ipxe的HTTP、FTP启动,体验极速传输(更新FTP)

看了你以上的那个帖子
请问这个方法适合启动wim格式的ramos ??? 还是只能启动iso PE?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-8-4 12:17

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表