Questions tagged [fragmentation]

An unefficient usage of disk storage in memory or hard drive.

189 questions
2
votes
0 answers

Entity "Defragmentation" constraint solver/algorithm

Update: A entity is an object created with attributes/methods of a given entity template. A entity may have a parent and/or a number of children. Every entity template has a thread fragmentation cost and a computer fragmentation cost. They define…
jameszhao00
  • 7,213
  • 15
  • 62
  • 112
2
votes
2 answers

What does a working example of dealing with packet fragmentation in C# look like when using the Begin* End* method?

After enough playing with asynchronous socket programming I noticed that the server was receiving chunked payloads (ie: more than one complete payload sitting in the same buffer). So I came up with the following: if (bytes_to_read > 0) { while…
Fake Code Monkey Rashid
  • 13,731
  • 6
  • 37
  • 41
1
vote
4 answers

WPF memory fragmentation

I've got what I assume is a memory fragmentation issue. We've recently ported our WinForms application to a WPF application. There's some image processing that this application does, and this processing always worked in the WinForms version of the…
mmr
  • 14,781
  • 29
  • 95
  • 145
1
vote
1 answer

How to handle the fact that Dialog background in Theme.Light are black on pre-ICS sdk and white on ICS

In my application, I use some dialogs to display information. The theme of my application is Theme.Light since 2 years, and these dialogs have always been black since the beginning. Now with ICS, it seems that Google just changed his mind and turned…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
1
vote
1 answer

TCP messages getting coalesced

I have a Java application that is writing to the network. It is writing messages in the region of 764b, +/- 5b. A pcap shows that the stream is getting IP fragmented and we can't explain this. Linux 2.6.18-238.1.1.el5 A strace shows: (strace -vvvv…
The_Viper
  • 391
  • 1
  • 6
  • 14
1
vote
1 answer

Zigbee pro: sending a multicast involving fragmentation

Ok, we do some brainstorming on a future project involving Zigbee PRO and the protocol interface cluster. Something like tunnelling a protocol (bacnet) IN the zigbee network. In bacnet, there is unicast (one target) and broadcast (many target)…
1
vote
1 answer

Terminology for SD Card Status

We've developed an Android program that relies on access to a particular directory on the SD card. Our program detects whether the SD card is available to the phone, and displays an error message to the user if it's not. The most common use case…
Bill Carey
  • 1,395
  • 1
  • 11
  • 20
1
vote
2 answers

"411 Length required"-response from Google Docs Api using Android API 10 and below

I am developing an application for Android devices, and one part of it is enabling downloading and uploading between the users Google Docs and the device storage. The problem that I have is I'm getting different behavior between different versions…
1
vote
0 answers

Trying to visualyze Heap Fragmentation

Im trying to measure heap fragmentation, I will use this formula : Fragmentation = 1 - (LargestFreeBlockAvailable / TotalFreeMemory) The tricky part is to find the largest free blocks. I have found this code which allow me to show all blocks in the…
Wololo
  • 11
  • 2
1
vote
0 answers

Simultaneous fragmentation and video encoding FFMPEG

Good day! I encrypted and fragmented .mp4 video file, but after encryption, I can't decode it back. Could you tell me please what I'm doing wrong? Command, which I use to encrypt: ffmpeg -i C:\ffmpeg-3.2.2-win64-static\111.mp4 -vcodec copy -acodec…
1
vote
1 answer

.NET Large Object Heap and JSON interaction

I have an asp.net application that serializes data to the client using JSON. Once load reaches a certain level, the app is spending an in-ordinate time in GC and after spending some time with WinDbg/SOS and related tools it appears that there is a…
mwatts42
  • 187
  • 5
1
vote
0 answers

SQLite - Is it possible to increase database in chunks during wal mode?

I am recording data quite rapidly in a SQLite Database, which results in a lot of fragments on the disc (typically 2500 frags/file). When I later on try to search through this database it takes a long time, mostly due to the fact that I have a hard…
Richard N
  • 11
  • 1
1
vote
2 answers

Reading from a network stream: packet fragmentation

I got a server that is managing two clients through NetworkStream.Read. Application protocol is: ClientMessage [128 Bytes] → Response from Server [128 Bytes] Now at server-side: Is it possible, that MyTcpClient.GetStream().Read() returns only < 128…
1
vote
2 answers

C# foreach performance vs memory fragmentation

Tracking down a performance problem (micro I know) I end with this test program. Compiled with the framework 4.5 and Release mode it tooks on my machine around 10ms. What bothers me if that if I remove this line public int[] value1 = new…
danijepg
  • 347
  • 1
  • 4
  • 15
1
vote
3 answers

How to capture TCP/IP fragmentation in tcpdump?

As we all know, the MTU is 1500 and the MSS for TCP is 1460. So when the buf used in the recv function is large than 1460 bytes, the TCP will be splitted into many parts. I write a simple echo prog, and want to use tcpdump to check the…
Tony Chen
  • 51
  • 1
  • 1
  • 4