home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 24956 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!world!entropy
  3. From: entropy@world.std.com (The Entropic one)
  4. Subject: wow, suggestion for library improvment/shared memory,X suggestion
  5. Message-ID: <C174y9.940@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. Date: Thu, 21 Jan 1993 08:58:57 GMT
  8. Lines: 29
  9.  
  10.  
  11. I just noticed that the linux munmap call is completely general 
  12. purpose. I've started using it on very large pieces of data when
  13. I free them, so that the pages are really freed rather than sitting
  14. around waiting to be swapped out. 
  15.  
  16. It seems like the libraries could be easily changed so that free would
  17. automatically call munmap whenever large chunks of data are freed.
  18. This would greatly improve performance when using large amounts of
  19. data (I wish I had this when I was working on tinymush).
  20.  
  21. It also seems like using the mmap call and /proc is an ideal way
  22. of doing shared memory since it doesn't require any special code
  23. in the kernel. (maybe this already works?)
  24.  
  25. If this was done local X windows speed could be greatly improved, the
  26. X windows server could map in all processes using it and transfer
  27. stuff directly from the users memory to the screen. For example
  28. dumping a large Ximage would involve only a copy to the VGA memory
  29. rather than a copy into and out of the kernel.
  30.  
  31. It seems like linux is fast on its way to becoming the best OS ever
  32. written :-)
  33.  
  34. -- 
  35. ------  Linux, Religion, and electronic shopping all in one place!
  36. \    / Repent of Bean eating, MS-DOS, OS/2, and windows NT, no sales man
  37.  \  / will hassle you, no priest will sacrifice you. Free 9600 baud download.
  38.   \/ Call the Virtual World Information Systems BBS at 508-793-9568        
  39.