fragmentation

How To Create File System Fragmentation?

Risk Factors for File Fragmentation include mostly full Disks and repeated file appends. What are other risk factors for file fragmentation? How would one make a program using common languages like C++/C#/VB/VB.NET to work with files & make new files with the goal of increasing file fragmentation? WinXP / NTFS is the target Edit: Wou...

How does disk de-fragmenting work?

I'd like to have a go at writing something which shows the state of a hard drive in terms of how fragmented it is. Maybe even has a go at de-fragmenting it. But I've realised that I don't fully understand how this works. Can anyone explain this to me and perhaps offer some suggestions of where I might start? I mainly use C# - would th...

TCP/UDP and ethernet MTU Fragmentation

I've read various sites and tutorials online but I am still confused. If the message is bigger than IP MTU, then send() returns the byte sent. What happens to the rest of the message? Am I to call send() again and attempt to send rest of the message? Or is that something IP layer should take care of automatically? ...

Oracle table fragmentation

How do I fragment a table so that it is distributed over multiple oracle 9i servers. ...

Programatically determine a file's fragmentation status

Is it possible to determine a specific file's fragmentation status (that is, the amount of distinct fragments this file occupies)? If so, how can this be done using .net? The motivation is this: my application is keeping data in a FileStream, changing its size on-demand. This eventually causes the file to be fragmented. I'd like to mon...

Benefits of "Don't Fragment" on TCP Packets?

One of our customers is having trouble submitting data from our application (on their PC) to a server (different geographical location). When sending packets under 1100 bytes everything works fine, but above this we see TCP retransmitting the packet every few seconds and getting no response. The packets we are using for testing are about...

MySQL Optimization 20 gig table

I have a 20 gig table that has a large amount of inserts and updates daily. This table is also frequently searched. I'd like to know if the MySQL indices can become fragmented and perhaps need to be rebuilt or something similar. I'm finding it difficult to figure out which of the CHECK TABLE, REPAIR TABLE or something similar? Any gui...

How to see fragmentation of a specific file?

Is there a tool that would show me for a specific file on disk, how fragmented it is? (How many seeks does physical disk need to make if I were to read that file in a linear fashion) ...

Android Apps: What is the recommended targetSdk for broadest appeal?

I have an Android app that only needs internet access and would like to target API level 3 (1.5) to reach the broadest handset base. However, it appears that targeting API level 3 implicitly requires two additional permissions that are visible to users: modify sd card, and read phone state. See: http://stackoverflow.com/questions/17471...

Why might the Large Object Heap grow rather than throw an exception?

In a previous question I asked possible programatic ways of maximising the largest block allocatable on the LOH. I'm still seeing the problems, but now I'm trying to get my head around why the LOH seems to grow and shrink in size, yet I'm still seeing OutOfMemoryExceptions that tally with what others have reported as being due to LOH fra...

Memory fragmentation @ boost::asio ?

I'm pretty much stuck with a question I never got an answer for, a question which addresses an extremely important issue; memory fragmentation at boost::asio. Found nothing at the documentation nor here at SO. The async functions at boost::asio, for example async_write() & async_read_some() always allocate something. (in my case it's 1...

What is the golden rule for when to split code up into functions?

It's good to split code up into functions and classes for modularity / decoupling, but if you do it too much, you get really fragmented code which is also not good. What is the golden rule for when to split code up into functions? ...

Effort due to Android fragmentation

With Android platform fragmentation, what changes in different OEM handset attributes force developers to port from one platform to another? ...

How to avoid sql server page fragmentation in this scenario?

I want to order SQL Inserts into a table to optimize page use by avoiding fragmentation as much as possible. I will be running a .net Windows Service, which every 2 hours will take some data from a database and optimize it for future queries. A varchar(6000) column is involved, though I estimate it will rarely go beyond 4000 bytes. In f...

Heavily fragmented Indexes - SQL Server 2005

I recently inherited a poorly maintained production database with heavily fragmented indexes (most of the indexes with more than 80% fragmented). I requested downtime with my manager to perform Index rebuild, but unfortunately downtime is not allowed at the moment. If online Index reorganize too is not option, can I do the following? R...

Reduce SQL Server table fragmentation without adding/dropping a clustered index?

I have a large database (90GB data, 70GB indexes) that's been slowly growing for the past year, and the growth/changes has caused a large amount of internal fragmentation not only of the indexes, but of the tables themselves. It's easy to resolve the (large number of) very fragmented indexes - a REORGANIZE or REBUILD will take care of t...

What is memory fragmentation?

I've heard the term "memory fragmentation" used a few times in the context of C++ dynamic memory allocation. I've found some questions about how to deal with memory fragmentation, but can't find a direct question that deals with it itself. So: What is memory fragmentation? How can I tell if memory fragmentation is a problem for my ap...

Will modifying any row data fragment my clustered index?

I now understand that a clustered index contains all of the row data, not just the index fields. I'm trying to understand the implications of this in regards to fragmentation. Say we have a table like this: create table Files ( ID uniqueidentifier not null, Field1 nvarchar(300) null, Field2 nvarchar(300) null, Field3 nv...

What changes are made in the mass storage API between Android 1.5 and Android 1.6

I wrote some code to save images on the SD Card a while back. Now I added the targetSDKVersion to my manifest and now my file saving code ceased to work. I can reproduce it through removing the targetSdkVersion from my manifest from that on my App won't write anything to the SD Card. Is there an API change between Android 1.5 and 1.6 ...

Zoom controls on emulator running Android 1.6 with QVGA

I'm testing my app on different AVD setups in the emulator and ran into problems with zoom controls in MapView on Android 1.6 using QVGA resolution only (lcd.density=120). When tapping on the screen so the zoom controls are displayed, the zoom in/plus sign is displayed much larger than zoom out, which seem to have the correct resolutio...