Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too much memory usage compared to Chrome and Firefox #5892

Open
Jinwoo-Song opened this issue Apr 29, 2015 · 10 comments
Open

Too much memory usage compared to Chrome and Firefox #5892

Jinwoo-Song opened this issue Apr 29, 2015 · 10 comments

Comments

@Jinwoo-Song
Copy link
Contributor

@Jinwoo-Song Jinwoo-Song commented Apr 29, 2015

Servo is showing high memory usage compared to Chrome and Firefox.
I used 'smem' on Linux and loaded 'www.naver.com' site.

./mach run --release http://www.naver.com
  PID User     Command                                    Swap      USS      PSS      RSS
 4073 jinwoo   /opt/google/chrome/nacl_hel         0          1848     1899       3804 
 4170 jinwoo   /opt/google/chrome/chrome -        0            488     4886       9636 
 4068 jinwoo   /opt/google/chrome/chrome -        0          4504     9839     28912 
 4152 jinwoo   /opt/google/chrome/chrome -        0           748    10347     31136 
 4049 jinwoo   /opt/google/chrome/chrome          0       82564    95359   128716
27456 jinwoo   /usr/lib/firefox/firefox                     0   197512   200816    216744 
10312 jinwoo   components/servo/target/rel        0    406112   408359    416616
@Manishearth
Copy link
Member

@Manishearth Manishearth commented Apr 29, 2015

I think there's a known leak, but I forgot if it was fixed. cc @metajack @nnethercote

(Can't find the issue)

@jdm
Copy link
Member

@jdm jdm commented Apr 29, 2015

Calling this a leak with no other information is jumping to conclusions. @Jinwoo-Song what is some sample output when running with the memory profiler enabled, using -m 5?

@metajack
Copy link
Contributor

@metajack metajack commented Apr 29, 2015

@Manishearth there is a huge mem spike on crashes, but I squashed the big leak we knew about.

@Jinwoo-Song
Copy link
Contributor Author

@Jinwoo-Song Jinwoo-Song commented Apr 29, 2015

Memory profiling log.

Begin memory reports
|
|    0.09 MiB -- pages
|       0.00 MiB -- url(about:blank)
|          0.00 MiB -- display-list 3
|       0.00 MiB -- url(http://castbox.shopping.naver.com/shopAdBox.nhn)
|          0.00 MiB -- display-list
|       0.01 MiB -- url(http://static.nid.naver.com/login.nhn?svc=www1501&url=http%3A%2F%2Fwww.naver.com&t=20150206)
|          0.01 MiB -- display-list
|       0.00 MiB -- url(http://nv.ad.naver.com/adshow?unit=002AT&da_dom_id=ad_timesquare)
|          0.00 MiB -- display-list
|       0.00 MiB -- url(http://nv2.ad.naver.com/adshow?unit=002AP&nrefreshx=0)
|          0.00 MiB -- display-list
|       0.08 MiB -- url(http://www.naver.com/)
|          0.08 MiB -- display-list
|       0.00 MiB -- url(http://nv1.ad.naver.com/adshow?unit=002AN&nrefreshx=0)
|          0.00 MiB -- display-list
|
|  370.02 MiB -- resident-according-to-smaps
|     324.76 MiB -- anonymous (rw-p)
|      18.73 MiB -- other
|      11.09 MiB -- /home/jinwoo/opensource/servo/components/servo/target/release/servo (r-xp)
|       4.70 MiB -- [heap](rw-p)
|       3.39 MiB -- /usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1 (r-xp)
|       2.12 MiB -- /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so (r-xp)
|       2.00 MiB -- anonymous (rwxp)
|       1.55 MiB -- /usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1 (r--p)
|       0.93 MiB -- /home/jinwoo/opensource/servo/components/servo/target/release/servo (r--p)
|       0.74 MiB -- /lib/x86_64-linux-gnu/libc-2.19.so (r-xp)
|
|   96.42 MiB -- jemalloc-heap-active
|   73.74 MiB -- jemalloc-heap-allocated
|  168.00 MiB -- jemalloc-heap-mapped
|  362.22 MiB -- resident
|   85.95 MiB -- system-heap-allocated
| 4904.19 MiB -- vsize
|
End memory reports
@Jinwoo-Song
Copy link
Contributor Author

@Jinwoo-Song Jinwoo-Song commented Apr 29, 2015

cc @yichoi

@Jinwoo-Song
Copy link
Contributor Author

@Jinwoo-Song Jinwoo-Song commented Apr 29, 2015

On Mac, Servo shows least memory usage for the same site. It seems that there are some issues on Linux platform.

I estimated the memory with 'Activity Monitor' memory tap on Mac.

  • Chrome: 206.2MB (Google Chrome, Google Chrome Helper x3)
  • Firefox: 202.5 MB
  • Servo: 148.7 MB
@emilio
Copy link
Member

@emilio emilio commented May 8, 2015

Maybe related with this: servo/rust-layers#157

@nox
Copy link
Member

@nox nox commented Sep 30, 2017

Does this still happen?

@jdm
Copy link
Member

@jdm jdm commented Sep 30, 2017

Memory usage looks fine on Mac like #5892 (comment); someone should check what it is on Linux.

@mikolajpp
Copy link

@mikolajpp mikolajpp commented Mar 28, 2018

I can do some testing. I will test it with smem on latest later this day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.