祝愿大家身体健康!

 站点注册  找回密码
 站点注册

QQ登录

只需一步,快速开始

查看: 3283|回复: 1

是不是在内存中建tempdbdev设备呀?

[复制链接]

是不是在内存中建tempdbdev设备呀?

[复制链接]
ctpyy

主题

0

回帖

180

积分

中级会员

积分
180
贡献
在线时间
小时
2008-4-16 18:07:27 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?站点注册

×

Placing tempdb on a RAM disk

First, add RAM disk support to your kernel by setting CONFIG_BLK_DEV_RAM = 1. This can be done by running make menuconfig or make xconfig in the /usr/src/linux directory and enabling RAM disk support in the Block Devices section.
You need to rebuild your kernel for this to take effect.

Stefan Goebel wrote this on sybase.public.sqlserver.linux:

  • 1. The default max size of a RAM disk is 20mb. You probably want to increase this by setting rd_size in drivers/block/rd.c from 204800 to 102400 (for a 100mb max size, for example).

  • 2. Create the RAM disk, mount it, and then create the new Sybase device for tempdb. Something like this should work to create the filesystem:
       troll#>  /sbin/mke2fs -q -m0 /dev/ram 52000 -F > /dev/null
    troll#> /bin/mount /dev/ram /opt/sybase/tempdb -t ext2 > /dev/null
    troll#> /bin/chown sybase:sybase /opt/sybase/tempdb
    troll#> /bin/touch /opt/sybase/tempdb/tempspace.dat
    troll#> /bin/chown sybase:sybase /opt/sybase/tempdb/tempspace.dat
    Now we need to move tempdb from master to this new file. So we need to create a Sybase device, and then extend tempdb to this new device:
       1> disk init name="tempdbdev", physname="/opt/sybase/tempdb/tempspace.dat",
    vdevno=XX, size=26000
    (replace XX with the correct vdevno!)
    2> go

是不是在内存中建tempdbdev设备呀?
共享共进共赢Sharing And Win-win Results
SYBASEBBS - 免责申明1、欢迎访问“SYBASEBBS.COM”,本文内容及相关资源来源于网络,版权归版权方所有!本站原创内容版权归本站所有,请勿转载!
2、本文内容仅代表作者观点,不代表本站立场,作者自负,本站资源仅供学习研究,请勿非法使用,否则后果自负!请下载后24小时内删除!
3、本文内容,包括但不限于源码、文字、图片等,仅供参考。本站不对其安全性,正确性等作出保证。但本站会尽量审核会员发表的内容。
4、如本帖侵犯到任何版权问题,请立即告知本站 ,本站将及时删除并致以最深的歉意!客服邮箱:admin@sybasebbs.com
ehxz

主题

0

回帖

57万

积分

管理员

积分
575004
贡献
在线时间
小时
2008-4-20 19:47:32 | 显示全部楼层
不是内存。要建在磁盘上的。
共享共进共赢Sharing And Win-win Results
您需要登录后才可以回帖 登录 | 站点注册

本版积分规则

免责声明:
本站所发布的一切破解补丁、注册机和注册信息及软件的解密分析文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:Admin@SybaseBbs.com

QQ|Archiver|PowerBuilder(PB)BBS社区 ( 鲁ICP备2021027222号-1 )

GMT+8, 2024-6-6 00:28 , Processed in 0.046895 second(s), 9 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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