All of lore.kernel.org
 help / color / mirror / Atom feed
* Memory Allocation Problem
@ 2004-03-31  5:19 Jeff Clark
  2004-04-01  9:35 ` Keir Fraser
  0 siblings, 1 reply; 13+ messages in thread
From: Jeff Clark @ 2004-03-31  5:19 UTC (permalink / raw)
  To: xen-devel

Using the latest cvs tarball I am able to create and start domains, but 
when I stop and/or destroy the domain the memory is never freed.  After 
stopping and starting my "test" domain a few times, I get an "Operation 
not permitted" message.  After running xc_physinfo.py I see that my 
available memory is exhausted (even though I only have dom0 running with 
256mb allocated and there is 512mb in the machine).

Also, any pointers for porting the gdth (raid) scsi driver?  I've 
figured out the obvious (rip out all the proc related stuff), but I'm a 
bit lost when it comes to the wait stuff.

-Jeff


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <4147E06B.4030303@redpinesignals.com>]
* Memory Allocation Problem
@ 2004-09-15  6:02 Ankit Jain
  2004-09-15 12:01 ` Eljay Love-Jensen
  2004-09-15 15:35 ` Suciu Flavius
  0 siblings, 2 replies; 13+ messages in thread
From: Ankit Jain @ 2004-09-15  6:02 UTC (permalink / raw)
  To: gcc, linux prg

      1 #include <stdio.h>
      2 int main()
      3 {
      4    double a[1450][1450];
      5
      6    a[1449][0] = 999;
      7    printf( "%lf\n", a[1449][0] );
      8    return 1;
      9 }


it gives segementation fault

if i use malloc also it gives wrong result

what to do?

ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Memory allocation problem
@ 2003-05-01 13:20 Mark_H_Johnson
  0 siblings, 0 replies; 13+ messages in thread
From: Mark_H_Johnson @ 2003-05-01 13:20 UTC (permalink / raw)
  To: anand kumar; +Cc: kernelnewbies, linux-mm

>The kernel version we are using is 2.4.18 (Redhat 8.0) and the total
>amount of memory available in the box is 128MB

>Is there any other mechanism to allocate large amount of physically
>contiguous memory blocks during normal run time of the driver? Is this
>being addressed in later kernels.

I regularly use a patch (bigphysarea) recommended by Dolphin for use with
their SCI cards. The copy I use is from a relatively old kernel (2.4.4)
which applies with a few warnings but is otherwise OK. I did a quick search
with Google for
  bigphysarea linux 2.4.18
and found
  http://frmb.home.cern.ch/frmb/download/bigphysarea-2.4.18.patch
or a more readable page at
  http://frmb.home.cern.ch/frmb/linux.html
which appears to be a version updated for 2.4.18. I believe the original
patch is maintained at
  http://www.uni-paderborn.de/fachbereich/AG/heiss/linux/bigphysarea.html

There are apparently several drivers that already use this interface, but
it does require a patched kernel.

I am not aware of any effort to merge this into the main line kernel
(though I would certainly appreciate that).

--Mark H Johnson
  <mailto:Mark_H_Johnson@raytheon.com>


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Memory allocation problem
@ 2003-04-30 22:14 anand kumar
  2003-04-30 22:28 ` Greg KH
  2003-04-30 22:36 ` Dave Hansen
  0 siblings, 2 replies; 13+ messages in thread
From: anand kumar @ 2003-04-30 22:14 UTC (permalink / raw)
  To: linux-mm; +Cc: kernelnewbies

Hi,

We are developing a PCI driver for a specialized hardware which
needs blocks of physically contiguous memory regions of
32 KB. We need to allocate 514 such blocks for a total of 16 MB
We were using an ioctl implementation in the driver which uses
kmalloc() to allocate the required memory blocks. 
kmalloc()(GFP_KERNEL)
fails after allocating some 250 blocks of memory (probably due to 
fragmentation).
We then tried using __get_free_pages() and the result was the 
same.
Even though the free pages in zone NORMAL and DMA were 10000 and 
1500 respectively.

Are we hitting some limit because of fragmentation and are
not able to allocate 8 contiguous physical pages? We tried moving 
the
memory allocation in init_module and made the driver load during 
boot
time, during which allocation succeeds.

The kernel version we are using is 2.4.18 (Redhat 8.0) and the 
total
amount of memory available in the box is 128MB

Is there any other mechanism to allocate large amount of 
physically
contiguous memory blocks during normal run time of the driver? Is 
this
being addressed in later kernels.

Rgds
Anand




--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-09-15 15:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-31  5:19 Memory Allocation Problem Jeff Clark
2004-04-01  9:35 ` Keir Fraser
2004-04-01 10:23   ` Keir Fraser
     [not found] <4147E06B.4030303@redpinesignals.com>
2004-09-15  6:34 ` Ankit Jain
  -- strict thread matches above, loose matches on Subject: below --
2004-09-15  6:02 Ankit Jain
2004-09-15 12:01 ` Eljay Love-Jensen
2004-09-15 15:35 ` Suciu Flavius
2004-09-15  6:38   ` Chandan Chopra
2003-05-01 13:20 Memory allocation problem Mark_H_Johnson
2003-04-30 22:14 anand kumar
2003-04-30 22:28 ` Greg KH
2003-04-30 22:29   ` Christoph Hellwig
2003-04-30 22:36 ` Dave Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.