由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - FreeBSD memory limit?
相关主题
Why FreeBSD?Re: how to track page faults when alloca
如何扩大内存limit?what does some of FTP instructions mean?
[转载] Help installing SuSe on PowerEdge 1600scpwd vs $cwd, help me
how to install FreeBSD, linux. windows in a single HD, is that possible?10个包子征求解答
Where to download Sun UNIX?关于R.Stevens书中UNIX系统一问
Have anyone installed FreeBSD on your PC[转载] How to distinguish different linux releases?
初级问题:怎么打开.rpm文件阿?Perl和Python哪个更好呀?
memory in top ?用哪种file system比较好?
相关话题的讨论汇总
话题: memory话题: freebsd话题: 4gb话题: 1gb话题: linux
进入Unix版参与讨论
1 (共1页)
C*S
发帖数: 135
1
Hi, I met a strange problem.
I have a simulation program. I wrote it on Linux using gcc.
I worked very well. Since I have only 1GB ram memory, whenever
it needs more memory, it uses swap. I also run this on a server
having 4GB ram. Everything was smooth.
After my system failure (hardware), I decided to install FreeBSD
because the Linux fedora distributions are getting worse, and
RHLE are charging money, and tired of suse....
I used FreeBSD 4.10, 4.11, 5.2, 5.3, 5.4 (a week of installying
again a
T********r
发帖数: 6210
2
ulimit?

【在 C*S 的大作中提到】
: Hi, I met a strange problem.
: I have a simulation program. I wrote it on Linux using gcc.
: I worked very well. Since I have only 1GB ram memory, whenever
: it needs more memory, it uses swap. I also run this on a server
: having 4GB ram. Everything was smooth.
: After my system failure (hardware), I decided to install FreeBSD
: because the Linux fedora distributions are getting worse, and
: RHLE are charging money, and tired of suse....
: I used FreeBSD 4.10, 4.11, 5.2, 5.3, 5.4 (a week of installying
: again a

o**v
发帖数: 1662
3
centos

【在 C*S 的大作中提到】
: Hi, I met a strange problem.
: I have a simulation program. I wrote it on Linux using gcc.
: I worked very well. Since I have only 1GB ram memory, whenever
: it needs more memory, it uses swap. I also run this on a server
: having 4GB ram. Everything was smooth.
: After my system failure (hardware), I decided to install FreeBSD
: because the Linux fedora distributions are getting worse, and
: RHLE are charging money, and tired of suse....
: I used FreeBSD 4.10, 4.11, 5.2, 5.3, 5.4 (a week of installying
: again a

C*S
发帖数: 135
4
It should be unlimited, since freeBDS can recongnize 1.5GB (I borrowed
one stick from a friend). But still the program cannot go beyond 1GB or so.
For the case of 1.5GB ram, it does not use swap before segment fault.

【在 T********r 的大作中提到】
: ulimit?
r****e
发帖数: 73
5
If you try "ulimit -a" under bash, you will see something like
data seg size (kbytes, -d) 524288
That is the maximum data memory one process can use.
To tune it, add
kern.maxdsiz="1610612736"
to /boot/loader.conf and reboot.

【在 C*S 的大作中提到】
: It should be unlimited, since freeBDS can recongnize 1.5GB (I borrowed
: one stick from a friend). But still the program cannot go beyond 1GB or so.
: For the case of 1.5GB ram, it does not use swap before segment fault.

C*S
发帖数: 135
6
Thank you so much, royale and terminator! (I actually did not understand
terminator until I saw royale.)

【在 r****e 的大作中提到】
: If you try "ulimit -a" under bash, you will see something like
: data seg size (kbytes, -d) 524288
: That is the maximum data memory one process can use.
: To tune it, add
: kern.maxdsiz="1610612736"
: to /boot/loader.conf and reboot.

C*S
发帖数: 135
7
Royale, how large this kern.maxsiz value can be?
The number you give here is 1.5GB. However, when
I was a little bit greedy after trying this number,
I put in 8GB (2^??) as the value for it. However,
the system refused to boot.
So what is the largest number it can be? I am think
of 4GB simulations.
By the way, I do not know how to fix the problem when
it refused to reboot, so reinstalling again. Is there
a better way to change the number after the system
fails to boot up?

【在 r****e 的大作中提到】
: If you try "ulimit -a" under bash, you will see something like
: data seg size (kbytes, -d) 524288
: That is the maximum data memory one process can use.
: To tune it, add
: kern.maxdsiz="1610612736"
: to /boot/loader.conf and reboot.

r****e
发帖数: 73
8
How much memory do you have? Don't go beyond that number.
If your program has memory leak, your system will be in trouble.
Can you boot to single user mode?
You don't need to reinstall system, at least you can use a FreeSBIE CD.

【在 C*S 的大作中提到】
: Royale, how large this kern.maxsiz value can be?
: The number you give here is 1.5GB. However, when
: I was a little bit greedy after trying this number,
: I put in 8GB (2^??) as the value for it. However,
: the system refused to boot.
: So what is the largest number it can be? I am think
: of 4GB simulations.
: By the way, I do not know how to fix the problem when
: it refused to reboot, so reinstalling again. Is there
: a better way to change the number after the system

T********r
发帖数: 6210
9
boot from install CD, choose "FixIt" in the installer menu, then
choose the second item in the following menu, you will get a
shell. then you can mount the disk to modify any files.

【在 C*S 的大作中提到】
: Royale, how large this kern.maxsiz value can be?
: The number you give here is 1.5GB. However, when
: I was a little bit greedy after trying this number,
: I put in 8GB (2^??) as the value for it. However,
: the system refused to boot.
: So what is the largest number it can be? I am think
: of 4GB simulations.
: By the way, I do not know how to fix the problem when
: it refused to reboot, so reinstalling again. Is there
: a better way to change the number after the system

C*S
发帖数: 135
10
I have 1.25GB (0.5 + 0.5 + 0.256) now, and I set the maxdsiz to 2GB.
I have 4GB swap. I was thinking of larger than 4GB program. My boss
asked me to buy 2GB more memory (the motherboard supports up to 2.5G)
so I will remove two sticks to make room for the 1GB sticks.
Do you mean if I have larger physical memory then I can have larger
maxdsiz? I am worrying if the system can give all the memory and
some swap to my program.
Thanks!

【在 r****e 的大作中提到】
: How much memory do you have? Don't go beyond that number.
: If your program has memory leak, your system will be in trouble.
: Can you boot to single user mode?
: You don't need to reinstall system, at least you can use a FreeSBIE CD.

C*S
发帖数: 135
11
Oh, I see... If I knew this I could have saved a lot of time and trouble!
Thanks a lot!

【在 T********r 的大作中提到】
: boot from install CD, choose "FixIt" in the installer menu, then
: choose the second item in the following menu, you will get a
: shell. then you can mount the disk to modify any files.

1 (共1页)
进入Unix版参与讨论
相关主题
用哪种file system比较好?Where to download Sun UNIX?
这个abs*********文件是什么东东啊?Have anyone installed FreeBSD on your PC
从suse转到rhel初级问题:怎么打开.rpm文件阿?
UNIX vs LINUX? why?memory in top ?
Why FreeBSD?Re: how to track page faults when alloca
如何扩大内存limit?what does some of FTP instructions mean?
[转载] Help installing SuSe on PowerEdge 1600scpwd vs $cwd, help me
how to install FreeBSD, linux. windows in a single HD, is that possible?10个包子征求解答
相关话题的讨论汇总
话题: memory话题: freebsd话题: 4gb话题: 1gb话题: linux