Re: Out of memory error when build OpenBSD Base/LLVM

2024-02-18 Thread Stuart Henderson
On 2024-02-17, Shivam Gupta wrote: > Hi All, > > I recently installed OpenBSD OS on my ASUS laptop quad core pentium with 4 > GB RAM and 1 TB HDD. > > I was following the guide to build the system from source. But in `make > build` step it gets a memory error when buildin

Re: Out of memory error when build OpenBSD Base/LLVM

2024-02-17 Thread Kenneth Gober
On Sat, Feb 17, 2024 at 10:07 AM Shivam Gupta wrote: > I recently installed OpenBSD OS on my ASUS laptop quad core pentium with 4 > GB RAM and 1 TB HDD. > > I was following the guide to build the system from source. But in `make > build` step it gets a memory error when building

Out of memory error when build OpenBSD Base/LLVM

2024-02-17 Thread Shivam Gupta
Hi All, I recently installed OpenBSD OS on my ASUS laptop quad core pentium with 4 GB RAM and 1 TB HDD. I was following the guide to build the system from source. But in `make build` step it gets a memory error when building LLVM. I tried other ways like make -j1 changing some build

Re: "Cannot allocate memory" error when memory is enough

2018-07-09 Thread Stuart Henderson
On 2018-07-09, Nan Xiao wrote: > Hi Stuart, > > This is my kernel information: > > $ sysctl -n kern.version | head -1 > OpenBSD 6.3 (GENERIC.MP) #4: Sun Jun 17 11:22:20 CEST 2018 > > I remember I used to build -current code before. So is it possible > that will mess up my system? Anything that

Re: "Cannot allocate memory" error when memory is enough

2018-07-08 Thread Nan Xiao
Hi Stuart, This is my kernel information: $ sysctl -n kern.version | head -1 OpenBSD 6.3 (GENERIC.MP) #4: Sun Jun 17 11:22:20 CEST 2018 I remember I used to build -current code before. So is it possible that will mess up my system? Thanks! Best Regards Nan Xiao On Sun, Jul 8, 2018 at 10:17

Re: "Cannot allocate memory" error when memory is enough

2018-07-08 Thread Stuart Henderson
On 2018/07/08 21:56, Nan Xiao wrote: > Hi Stuart, > > Thanks for your reply! > > $ cat /etc/installurl > https://ftp.openbsd.org/pub/OpenBSD > > Does my /etc/installurl will always fetch -current? > > Thanks in advance! > Best Regards > Nan Xiao > > > On Sun, Jul 8, 2018 at 7:33 AM, Stuart

Re: "Cannot allocate memory" error when memory is enough

2018-07-08 Thread Nan Xiao
Hi Stuart, Thanks for your reply! $ cat /etc/installurl https://ftp.openbsd.org/pub/OpenBSD Does my /etc/installurl will always fetch -current? Thanks in advance! Best Regards Nan Xiao On Sun, Jul 8, 2018 at 7:33 AM, Stuart Henderson wrote: > On 2018-07-07, Tom Smyth wrote: >> Hi otto >>

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Stuart Henderson
On 2018-07-07, Tom Smyth wrote: > Hi otto > > I must check that last time i read man page it was related it was for > syspatch /etc/installurl is used if present, pkg_add selects /snapshots/ or /6.3/ etc depending on the kernel version string. If set, PKG_PATH overrides /etc/installurl, and

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Tom Smyth
Hello yeah the installurl functionality appears to have been added to after 6.1 thanks Otto On 7 July 2018 at 17:10, Tom Smyth wrote: > Hi otto > > I must check that last time i read man page it was related it was for > syspatch > > > Thanks > > > > On Sat 7 Jul 2018, 17:07 Otto Moerbeek,

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Tom Smyth
Hi otto I must check that last time i read man page it was related it was for syspatch Thanks On Sat 7 Jul 2018, 17:07 Otto Moerbeek, wrote: > On Sat, Jul 07, 2018 at 03:52:44PM +0100, Tom Smyth wrote: > > > Hello Nan, > > you need to set the PKG_path as Stuart suggested to install

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Otto Moerbeek
On Sat, Jul 07, 2018 at 03:52:44PM +0100, Tom Smyth wrote: > Hello Nan, > you need to set the PKG_path as Stuart suggested to install packages using > > pkg_add command > > for example to use fastly cdn mirror you would set your pkg_path variable as > shown below > > export

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Tom Smyth
Hello Nan, you need to set the PKG_path as Stuart suggested to install packages using pkg_add command for example to use fastly cdn mirror you would set your pkg_path variable as shown below export PKG_PATH=https://fastly.cdn.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Nan Xiao
HI Stuart, Thanks for your reply! I don't set PKG_PATH environment. Yes, it seems I installed the current package: $ ls -l /usr/local/bin/egdb -rwxr-xr-x 1 root bin 10040410 Jun 28 19:03 /usr/local/bin/egdb But I can't remember what I have done. I can only remember I modified

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Stuart Henderson
On 2018-07-07, Nan Xiao wrote: > Hi Philip, > > Thanks very much for your time and effort! > > The following is the command output: > > $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}' > 88.4844 > > The same as yours. That is from -current. > Honestly, I am not sure whether

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Nan Xiao
Hi Philip, Thanks very much for your time and effort! The following is the command output: $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}' 88.4844 The same as yours. Honestly, I am not sure whether the package is for -stable or -current. After installation, I just add

Re: "Cannot allocate memory" error when memory is enough

2018-07-06 Thread Philip Guenther
On Wed, Jul 4, 2018 at 6:31 PM Nan Xiao wrote: > Thanks very much for your time and patience. I run "syspatch" command > regularly, so it should be 6.3-stable. > > My full dmesg output is here: > ... Okay, nothing weird in there. And full ouput of "vmstat -m": > Nothing stands out in that

Re: "Cannot allocate memory" error when memory is enough

2018-07-04 Thread Nan Xiao
Hi Philip, Thanks very much for your time and patience. I run "syspatch" command regularly, so it should be 6.3-stable. My full dmesg output is here: OpenBSD 6.3 (RAMDISK_CD) #98: Sat Mar 24 14:26:39 MDT 2018 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem =

Re: "Cannot allocate memory" error when memory is enough

2018-07-04 Thread Philip Guenther
On Wed, Jul 4, 2018 at 12:57 AM Nan Xiao wrote: > My OS is 6.3. I already use "pkg_add -u" to upgrade all installed > packages. cmake and egdb are are installed by "pkg_add", not compiled > by me. > You don't mention -release, or -stable, or -current, which is utterly critical: 6.3-release and

Re: "Cannot allocate memory" error when memory is enough

2018-07-04 Thread Nan Xiao
HI Philip, Thanks very much for your detailed explanation! My OS is 6.3. I already use "pkg_add -u" to upgrade all installed packages. cmake and egdb are are installed by "pkg_add", not compiled by me. "vmstat -m" gives some information: $ vmstat -m Memory statistics by bucket size Size

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Philip Guenther
On Tue, 3 Jul 2018, Philip Guenther wrote: Flakey button on my mouse; time to clean it again and throw it out if it keeps glitching. Sorry about that. > On Tue, Jul 3, 2018 at 4:53 PM Nan Xiao wrote: > > Thanks for your reply! The "ulimit -a" outputs following: > > > > $ ulimit -a > >

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Philip Guenther
On Tue, Jul 3, 2018 at 4:53 PM Nan Xiao wrote: > Thanks for your reply! The "ulimit -a" outputs following: > > $ ulimit -a > time(cpu-seconds)unlimited > file(blocks) unlimited > coredump(blocks) unlimited > data(kbytes) 33554432 > stack(kbytes)8192 >

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Nan Xiao
Hi Marc, Thanks for your reply! The "ulimit -a" outputs following: $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 33554432 stack(kbytes)8192 lockedmem(kbytes)1332328 memory(kbytes) 3978716

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Marc Espie
On Tue, Jul 03, 2018 at 05:31:22PM +0800, Nan Xiao wrote: > Hi all, > > Greeting from me! > > I am running OpenBSD 6.3, and don't know from when, loading some > binary will prompt "Cannot allocate memory": > > $ egdb > ksh: egdb: Cannot allocate memory > > $ cmake > ksh: cmake: Cannot allocate

"Cannot allocate memory" error when memory is enough

2018-07-03 Thread Nan Xiao
Hi all, Greeting from me! I am running OpenBSD 6.3, and don't know from when, loading some binary will prompt "Cannot allocate memory": $ egdb ksh: egdb: Cannot allocate memory $ cmake ksh: cmake: Cannot allocate memory But the memory seems enough: $top .. Memory: Real: 57M/1365M act/tot

ksh alias internal memory error

2014-12-21 Thread James Humphrey
Hello All, I have found a strange behavior while using aliases in the shell. I'm wondering if someone can provide an explanation for the error below. $ cat alias.sh alias ls='ls' alias ls=`ls` echo final command $ sh alias.sh alias.sh: internal error: unable to allocate memory $ echo $? 0 $

Re: ksh alias internal memory error

2014-12-21 Thread c...@chibacityblues.org
On December 21, 2014 5:12:33 AM CST, James Humphrey jh28...@gmail.com wrote: I have found a strange behavior while using aliases in the shell. I'm wondering if someone can provide an explanation for the error below. I was curious, so I built /usr/bin/ksh with debugging symbols on 5.6-stable.

Re: ksh alias internal memory error

2014-12-21 Thread James Humphrey
Hi, Thanks for the confirmation and the analysis. On Sun, Dec 21, 2014 at 08:48:56PM +, c...@chibacityblues.org wrote: I leave it to someone with more ksh expertise to say what the defined behavior should be in this case. I'm not sure I see a useful real-world scenario where this would

Memory error with latest snapshot

2012-06-23 Thread Chris Bennett
I am getting the following error when trying to run gvim and xombrero I also got it on snapshot before latest for xombrero. ***MEMORY-ERROR***: xombrero[25991]: GSlice: failed to allocate 8184 bytes (alignment: 8192): Invalid argument Running i386 Is it snapshot or something I need to do here

Re: Memory error with latest snapshot

2012-06-23 Thread Tomas Bodzar
On Sat, Jun 23, 2012 at 7:10 PM, Chris Bennett ch...@bennettconstruction.us wrote: I am getting the following error when trying to run gvim and xombrero I also got it on snapshot before latest for xombrero. ***MEMORY-ERROR***: xombrero[25991]: GSlice: failed to allocate 8184 bytes (alignment

Re: Memory error with latest snapshot

2012-06-23 Thread Matthew Dempsky
the following error when trying to run gvim and xombrero I also got it on snapshot before latest for xombrero. ***MEMORY-ERROR***: xombrero[25991]: GSlice: failed to allocate 8184 bytes (alignment: 8192): Invalid argument Running i386 Is it snapshot or something I need to do here? Thanks Chris

Re: Memory error with latest snapshot

2012-06-23 Thread Juan Francisco Cantero Hurtado
On Sat, Jun 23, 2012 at 12:10:09PM -0500, Chris Bennett wrote: I am getting the following error when trying to run gvim and xombrero I also got it on snapshot before latest for xombrero. ***MEMORY-ERROR***: xombrero[25991]: GSlice: failed to allocate 8184 bytes (alignment: 8192): Invalid

Re: Memory error with latest snapshot

2012-06-23 Thread Ted Unangst
On Sat, Jun 23, 2012 at 12:10, Chris Bennett wrote: I am getting the following error when trying to run gvim and xombrero I also got it on snapshot before latest for xombrero. ***MEMORY-ERROR***: xombrero[25991]: GSlice: failed to allocate 8184 bytes (alignment: 8192): Invalid argument

memory error

2007-03-01 Thread Balazs MOLNAR
hi well i set every datasize to 128M: in /etc/login.conf, but rtorrent (or anyother torrent client does the same) eats all the memory. even if its limited in login.conf rtorrent vmstat -c 20 [1] 21891 procs memorypagedisk traps cpu r b wavmfre

Re: CARP send failed due to mbuf memory error

2007-02-09 Thread Matt Hamilton
% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines Any ideas? Someone suggested that the mbuf memory error counter might be incremented when pf drops a packet from a queue, however all our carp stuff has its own queue: snippets from pf.conf

CARP send failed due to mbuf memory error

2007-02-08 Thread Matt Hamilton
0 discarded for bad authentication 0 discarded for bad vhid 0 discarded because of a bad address list 144221 packets sent (IPv4) 0 packets sent (IPv6) 4 send failed due to mbuf memory error I have 8192 mbufs (set