All of lore.kernel.org
 help / color / mirror / Atom feed
* does SCSI eat my PC's memory?
@ 2007-02-12 10:08 Tomasz Chmielewski
  0 siblings, 0 replies; 2+ messages in thread
From: Tomasz Chmielewski @ 2007-02-12 10:08 UTC (permalink / raw)
  To: linux-scsi

Does SCSI eat my PC's memory? Probably not, but I can't find an 
explanation of what uses so much RAM when I use SCSI disks.

A little background first.

Overall, the system has 1 GB memory. When it boots and everything has
started, about 60 MB of memory is used (excluding buffers).

One partition is on a iSCSI target (I access it using open-iscsi):

/dev/sda              570G  402G  139G  75% /mnt/iscsi_backup

It contains lots of data, many files, hardlinked multiple times
(in total, almost 100 000 000 files).


When I run "find /mnt/iscsi_backup" for some time, and run
"free" to see memory usage, I can see almost 500 MB is used (excluding
buffers/cache):

# free
               total       used       free     shared    buffers     cached
Mem:       1048576    1029360      19216          0     530972      17628
-/+ buffers/cache:     480760     567816
Swap:      1048568         68    1048500


Also, stopping all deamons and dropping cache doesn't help (sum of the
memory used by all processes, displayed by "ps", is about 60 MB):

# echo 1 > /proc/sys/vm/drop_caches
# free
               total       used       free     shared    buffers     cached
Mem:       1048576     453932     594644          0        352       6408
-/+ buffers/cache:     447172     601404
Swap:      1048568         68    1048500


A single "umount" command releases almost 400 MB of memory:

# umount /mnt/iscsi_backup/
# free
               total       used       free     shared    buffers     cached
Mem:       1048576      64188     984388          0        232       6528
-/+ buffers/cache:      57428     991148
Swap:      1048568         64    1048504



What used almost 400 MB? SCSI buffers? I can't find any documentation on 
that.

I noticed that when I add RAM to the system, more "unexplained" RAM will 
be used.
When I remove some RAM (i.e. so that the system has 512 MB), 
"unexplained" RAM usage will drop - as a rule of thumb, I observed that 
about 50% of RAM is used by something I can't identify.


-- 
Tomasz Chmielewski
http://wpkg.org

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

* does SCSI eat my PC's memory?
@ 2007-02-09 17:08 Tomasz Chmielewski
  0 siblings, 0 replies; 2+ messages in thread
From: Tomasz Chmielewski @ 2007-02-09 17:08 UTC (permalink / raw)
  To: linux-mm

Does SCSI eat my PC's memory? Probably not, but I can't find an 
explanation of what uses so much RAM when I use SCSI disks.

A little background first.

Overall, the system has 1 GB memory. When it boots and everything has
started, about 60 MB of memory is used (excluding buffers).

One partition is on a iscsi target (I access it using open-iscsi):

/dev/sda              570G  402G  139G  75% /mnt/iscsi_backup

It contains lots of data, many files, hardlinked multiple times
(in total, almost 100 000 000 files).


When I run "find /mnt/iscsi_backup" for some time, and run
"free" to see memory usage, I can see almost 500 MB is used (excluding
buffers/cache):

# free
               total       used       free     shared    buffers     cached
Mem:       1048576    1029360      19216          0     530972      17628
-/+ buffers/cache:     480760     567816
Swap:      1048568         68    1048500


Also, stopping all deamons and dropping cache doesn't help (sum of the
memory used by all processes, displayed by "ps", is about 60 MB):

# echo 1 > /proc/sys/vm/drop_caches
# free
               total       used       free     shared    buffers     cached
Mem:       1048576     453932     594644          0        352       6408
-/+ buffers/cache:     447172     601404
Swap:      1048568         68    1048500


A single "umount" command releases almost 400 MB of memory:

# umount /mnt/iscsi_backup/
# free
               total       used       free     shared    buffers     cached
Mem:       1048576      64188     984388          0        232       6528
-/+ buffers/cache:      57428     991148
Swap:      1048568         64    1048504



What used almost 400 MB? SCSI buffers?

I noticed that when I add RAM to the system, more "unexplained" RAM will 
be used.
When I remove some RAM, "unexplained" RAM usage will drop - as a rule of 
thumb, I observed that about 50% of RAM is used by something I can't 
identify.


-- 
Tomasz Chmielewski
http://wpkg.org

--
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:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2007-02-12 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 10:08 does SCSI eat my PC's memory? Tomasz Chmielewski
  -- strict thread matches above, loose matches on Subject: below --
2007-02-09 17:08 Tomasz Chmielewski

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.