memory

Go 1.13 RSS keeps on increasing, suspected scavenging issue

元气小坏坏 提交于 2021-02-07 03:41:13
问题 We are experiencing RSS that keeps on increasing in one of our Go service. We are suspecting it's due to scavenger not returning memory to OS properly (or OS not taking back the memory due to use of MADV_FREE). Checked via pprof, no memory leak detected. We tried some experiment with the following simple Go program: Go version: go1.13.4 linux/amd64 (tried with go1.13.1 too) package main import ( "fmt" "time" ) func allocate(s int) { a := make([]byte, s * 1024 * 1024) for i := 0;i < len(a); i

MVC ASP.NET is using a lot of memory

喜你入骨 提交于 2021-02-06 19:55:45
问题 If I just browse some pages on the app, it sits at around 500MB. Many of these pages access the database but at this point in time, I only have roughly a couple of rows each for 10 tables, mostly storing strings and some small icons that are less than 50KB. The real problem occurs when when I download a file. The file is roughly 140MB and is stored as a varbinary(MAX) in the database. The memory usage suddenly rises to 1.3GB for a split second and then falls back to 1GB. The code for that

Alternative to Stream_Copy_To_Stream() php

对着背影说爱祢 提交于 2021-02-06 11:50:48
问题 I am working on a file sharing site right now and I've run into a small problem. I am using the upload scrip uploadify which works perfectly but if the user wants i want the uploaded file to be encrypted. Now i have working code that does this as shown below but my server only has 1GB or memory and using stream_copy_to_stream seems to take up the size of the actually file in memory and my max upload size is 256 so i know for a fact that something bad is going to happen when the site goes live

Alternative to Stream_Copy_To_Stream() php

喜夏-厌秋 提交于 2021-02-06 11:49:09
问题 I am working on a file sharing site right now and I've run into a small problem. I am using the upload scrip uploadify which works perfectly but if the user wants i want the uploaded file to be encrypted. Now i have working code that does this as shown below but my server only has 1GB or memory and using stream_copy_to_stream seems to take up the size of the actually file in memory and my max upload size is 256 so i know for a fact that something bad is going to happen when the site goes live

NanoHttpd server cannot stream large videos on android

我与影子孤独终老i 提交于 2021-02-05 20:30:37
问题 NanoHttpd server code can be found here. I'm starting a new Thread in a service that uses NanoHttpd server to stream large videos (about 150mb) but it just pauses right while the loading dialog is shown. I tried increasing and decreasing the buffer reads to no avail. It seems that the server cannot run properly on an Android device. Same code works fine when I start the server via desktop application. I can stream more than 150mb. When running the server from the phone, I only tried 20mb

How does PAE (Physical Address Extension) enable an address space larger than 4GB?

删除回忆录丶 提交于 2021-02-05 20:10:40
问题 An excerpt of Wikipedia's article on Physical Address Extension: x86 processor hardware-architecture is augmented with additional address lines used to select the additional memory, so physical address size increases from 32 bits to 36 bits. This, theoretically, increases maximum physical memory size from 4 GB to 64 GB. Along with an image explaining the mechanism: But I can't see how the address space is expanded from 4GB to 64GB. And 4 * 512 * 512 * 4K still equals 4GB, isn't it? 回答1: x86

How does PAE (Physical Address Extension) enable an address space larger than 4GB?

时光怂恿深爱的人放手 提交于 2021-02-05 20:09:35
问题 An excerpt of Wikipedia's article on Physical Address Extension: x86 processor hardware-architecture is augmented with additional address lines used to select the additional memory, so physical address size increases from 32 bits to 36 bits. This, theoretically, increases maximum physical memory size from 4 GB to 64 GB. Along with an image explaining the mechanism: But I can't see how the address space is expanded from 4GB to 64GB. And 4 * 512 * 512 * 4K still equals 4GB, isn't it? 回答1: x86

How to draw a pixel on the screen in protected mode in x86 assembly?

旧城冷巷雨未停 提交于 2021-02-05 18:54:17
问题 I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode. I jumped to the 32-bits function that show me a character on the screen, using the video memory for textual content (0x000B0000 - 0x000B7777) pusha mov edi, 0xB8000 mov bl, '.' mov dl, bl mov dh, 63 mov word [edi], dx popa Now, I would like to go a little further and draw a single pixel on the screen. As I read on some website, if I want to use the graphics

How to draw a pixel on the screen in protected mode in x86 assembly?

强颜欢笑 提交于 2021-02-05 18:54:12
问题 I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode. I jumped to the 32-bits function that show me a character on the screen, using the video memory for textual content (0x000B0000 - 0x000B7777) pusha mov edi, 0xB8000 mov bl, '.' mov dl, bl mov dh, 63 mov word [edi], dx popa Now, I would like to go a little further and draw a single pixel on the screen. As I read on some website, if I want to use the graphics

How to draw a pixel on the screen in protected mode in x86 assembly?

南楼画角 提交于 2021-02-05 18:53:34
问题 I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode. I jumped to the 32-bits function that show me a character on the screen, using the video memory for textual content (0x000B0000 - 0x000B7777) pusha mov edi, 0xB8000 mov bl, '.' mov dl, bl mov dh, 63 mov word [edi], dx popa Now, I would like to go a little further and draw a single pixel on the screen. As I read on some website, if I want to use the graphics