Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Memory leak #36

Closed
nbkolchin opened this issue Mar 12, 2013 · 2 comments
Closed

Memory leak #36

nbkolchin opened this issue Mar 12, 2013 · 2 comments
Labels

Comments

@nbkolchin
Copy link

Linux-64bit, GO1.0.3

Code: https://gist.github.com/nbkolchin/5143162

Command:
$ for i in seq 0 4 ; do touch $i ; done

Output:

  • 2013/03/12 17:51:36 363416 385912 2686976 364 96
  • 2013/03/12 17:51:36 363608 386976 2686976 387 115
  • 2013/03/12 17:51:36 363784 388136 2686976 408 135
  • 2013/03/12 17:51:36 363832 389056 2686976 428 154
  • 2013/03/12 17:51:36 363880 389976 2686976 448 173

On each loop iteration, the amount of AllocatedAndUsed memory increases and never goes down. In "real life" application, it exceeded 1G.

"Reproducable" on MacOSX, but as I understand this is 'expected' behaviour on that platform.

howeyc added a commit that referenced this issue Mar 14, 2013
@howeyc
Copy link
Owner

howeyc commented Mar 14, 2013

Whenever you get a chance could you see if what I've done works for you as well? It's in master branch.

@nbkolchin
Copy link
Author

Problem resolved. Thank you.

@howeyc howeyc closed this as completed Mar 14, 2013
rsc pushed a commit to golang/exp that referenced this issue Dec 7, 2014
WatchFlags of files created in Watched directories are now the same as the
parent directory. (howeyc/fsnotify#33)

Darwin now uses EVT_ONLY flag on Open file for watching.
(howeyc/fsnotify#44)

Linux has been updated to ignore events that occur after delete.
(howeyc/fsnotify#36)

Symlink test updated.
(howeyc/fsnotify#42)

Rename tests use external "mv" where available.

R=golang-dev, dave, fullung, rsc
CC=golang-dev
https://golang.org/cl/9827046
actgardner pushed a commit to scalingdata/fsnotify that referenced this issue Apr 2, 2015
GoogleCodeExporter pushed a commit to bsed/go-zh.exp that referenced this issue May 31, 2015
WatchFlags of files created in Watched directories are now the same as the
parent directory. (howeyc/fsnotify#33)

Darwin now uses EVT_ONLY flag on Open file for watching.
(howeyc/fsnotify#44)

Linux has been updated to ignore events that occur after delete.
(howeyc/fsnotify#36)

Symlink test updated.
(howeyc/fsnotify#42)

Rename tests use external "mv" where available.

R=golang-dev, dave, fullung, rsc
CC=golang-dev
https://codereview.appspot.com/9827046

Committer: Russ Cox <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants