Re: kernel parameters and Oracle 9



Robert Klute wrote:
On Wed, 08 Feb 2006 00:15:14 GMT, Don Morris <dgmorris@xxxxxxxxxxxxx>
wrote:

With a 32Gb box, I have to assume the kernel is 64-bit, so setting it to
32Gb of memory is fine and won't have any real impact on 32-bit apps,
they'll still be limited based on their address space, not shmmax.

Try setting SHMMAX to a multiple of 4GB and then run a 32-bit
application that uses shared memory and checks the amount available,
Oracle 8 or older for example, and see what happens. Unless the
application is 'aware' that it is know a 64-bit number it will only
check the lower 32 bits.

Older, I could understand I suppose... Oracle 8 (being intended for
10.20 from what I can tell googling around) has no excuse. It should
have been written to use _PSTAT64 to get the 64-bit value in the
first place.

In any event - okay, a 32-bit application which either is so old it
doesn't know better or has a bug because it *should* have known
better may arbitrarily limit itself if it tries to read shmmax
incorrectly. For that matter - it could just as easily mask it
with a 16-bit value... or XOR the last few flags. My context wasn't
how applications limit themselves... but how the tunable really works
to enforce limits on the system call. If the application does it
wrong then the application needs to be upgraded/patched/whatnot.
Only if that isn't feasible (and it likely wouldn't be for truly
old apps if for some reason folks don't want to run newer ones)
should workarounds such as trying to take into account truncation
results be considered.

Don
.



Relevant Pages

  • Re: Tech directions for Delphi?
    ... allocator, ... Most desktop apps build a relatively modest working set (a ... the case for .NET doesn't really rest on automatic memory ... management being cheaper overall than manual memory management. ...
    (borland.public.delphi.non-technical)
  • Re: Id appreciate your opinion(s)
    ... The fact that so much memory is used really doesn't mean you ... When it comes to all of the apps except for ones defined in the ... then I would say that .NET or Java are perfectly fine ... Java and .NET can both do "smart" clients, fat clients, or web-based ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Small C# program takes up too much memory
    ... They just see a number in Task Manager, and that our software is near the ... We're taking up too much memory, according to the list they're seeing (In ... We've had a number of customer evaluate using our stuff and then ... and end up building native Win32 apps. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: GetTotalMemory, GlobalMemoryStatus
    ... Windows CE Product Manager ... > OK, sorry, when I said "no other apps" I meant no apps of mine (thought ... > "taking in account memory used by the system" bit covered that)... ... In other words if I have PInvoke calls that allocate memory ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Slow Opening - Program or Processor?
    ... Office 2008 needs a total of about a gig of memory to run "well". ... I do usually have several other apps running simultaneously. ... this slowdown in opening never happened in Word 2004... ... have other programs running & other files open as well as other processes ...
    (microsoft.public.mac.office.word)