06-18-2016
Ubuntu snap deduplication
Hi,
I think the ubuntu snap is great idea.
However the fact that it may contain duplications has two disadvantages.
1) eating more space in the storage.
2) eating more space in the internal memory (RAM), it will load the same library more than once to the memory.
Now the solution for this is simple.
We can have one directory that is called the repository, and it will contain all the libraries and binaries of all the snap packages.
The name of the file in this repositories will be the sha-256 of their content, so only if the two files are identical, they will override each other, but in this case it won't matter because they are the same.
The snap package itself will contain hard link to the libraries and binaries that it is using from the repositories.
So if two different snap package will use exactly the same version of Java/python (etc etc..), it will be stored only once, and will be load only once.
We can also count the number of hard link for every file in central repositories, and if it only one, then it mean that no snap repositories is any more using this binaries, and it can be deleted.
This way all snap package are isolated, but we have no duplication.
Now I say nothing new here, other said it already, I am just repeating what they have said.
What I don't understand is they are not implementing it ?
I mean it sound like an easy problem to solve.
What is holding back the snap developer from doing it?
Are there any obstacle that I am not aware of ?
can any of the snap developers tell me what prevent them from implementing this?
I mean it sound not very easy , but maybe I am not aware of issues.
So I hope someone can explain to me why this is not implemented?
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When using dump, a .snap directory is created in the partition being dumped.
I have searched for the reason this directory is created but haven't found any information on its purpose.
I have monitored the .snap directory during a dump and I have never seen any files appear in during the dump so... (3 Replies)
Discussion started by: thumper
3 Replies
2. AIX
can any one give me a script which take a snap shot of Topas at a fix interval of 15min and save it in a perticular file!!!!!!!! (6 Replies)
Discussion started by: abhishek27
6 Replies
3. UNIX for Dummies Questions & Answers
Hi all
For AIX we can snap -gc gather the info
how abt other systems is solaris and linux?
thanks in advance
jiajin (0 Replies)
Discussion started by: lijiajin
0 Replies
4. Red Hat
Hi, Does anybody use Enterprise Data Replicator for Network Attached Storage replication.
If you do, Do you get the following message in replication logs.
"Replication Source file agent No heart beats from the remote target agent on snap01 for 300 seconds: Assuming connection failure"
... (1 Reply)
Discussion started by: uxadmin007
1 Replies
5. AIX
Hi Friends,
I am not able to execute snap -a command in AIX 6 system. Could you please let me know how to make work this command and Path to be set.
Thanks in Advance
Siva. (4 Replies)
Discussion started by: sivakumarl
4 Replies
6. AIX
Hi Everyone,
Does anyone know if can access
/etc/environment from SNAP file
to check the time zone from the snap file
Objective:
The timezone on the server was changed by someone to another timezone, so I want to check what is the old timezone was ?
I have an old SNAP file.
Does... (4 Replies)
Discussion started by: filosophizer
4 Replies