Re: perl pad.c Assertion !((sv)->sv_flags & 0x00010000) failed



On Mon, Jun 25, 2007 at 10:31:25PM +0100, Nicholas Clark wrote:
On Mon, Jun 25, 2007 at 09:44:02PM +0100, Tim Bunce wrote:

Once upon a time there was talk of implementing a "less" pragma
so you'd be able to say something like

use less qw(memory);

to indicate that cpu/memory balance should be shifted towards cpu.
Pity that never happened.

It's still on the todo list. It doesn't appear to have become a large enough
itch for anyone to scratch it.

Perhaps in part because a) few people realise that a sub manipulating
large strings in lexical vars will continue to hold that memory,
and b) there's no easy way to measure the memory being held in this way.

Tim.

p.s. I've set Reply-To perl5-porters@xxxxxxxx
.



Relevant Pages

  • Next July 27: boot failure(hang) on x86_64 box.
    ... Freeing unused kernel memory: 1360k freed ... ACPI: PM-Timer IO Port: 0x488 ... CPU: L2 Cache: 1024K ... # AX.25 network device drivers ...
    (Linux-Kernel)
  • [PATCH] Document Linuxs memory barriers [try #3]
    ... The attached patch documents the Linux kernel's memory barriers. ... I've tried to get rid of the concept of memory accesses appearing on the bus; ... barring implicit enforcement by the CPU. ...
    (Linux-Kernel)
  • Oops in 2.6.28-rc9 and -rc8 -- mtrr issues / e1000e
    ... Bios 1.04beta did show correct memory sizing in dmidecode, ... I hope this is as simple as me doing something glaringly wrong in the kernel ... DMI present. ... CPU: L2 cache: 6144K ...
    (Linux-Kernel)
  • Re: read vs. mmap (or io vs. page faults)
    ... not fit in main memory, and there are overheads related to the heuristics ... But because the CPU is underutilized, ... reasonably sized user buffer). ... You have to measure the actual overhead to see what the actual cost is. ...
    (freebsd-questions)
  • Sun Fire v440 hardware problem (cant get ok>)
    ... 0>Init CPU ... 1>Set JBUS config reg ... 0>Probe and Setup Memory ... Could not read diag-level from NVRAM! ...
    (SunManagers)