S
S
Sa7ha_S2016-06-26 22:16:54
linux
Sa7ha_S, 2016-06-26 22:16:54

Why PHP script took up all the disk space?

After running a php script that parsed a huge text, the free disk space disappeared.
You can see on screenshots. It looks like the place has disappeared.
ea2f359b81d0434daf618b588ebfb82d.png90e6c4509a4a4829a880e5b06c55aca9.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
X
xmoonlight, 2016-06-26
@xmoonlight

Classic stackoverflow.
It seems to me that the swap "inflated" due to the use of standard PHP functions on non-standard data volumes. Those. the algorithm is not designed to work with input data of such a volume.
Look for: where is your bottleneck function in the algorithm code.

A
Alexander Aksentiev, 2016-06-26
@Sanasol

Swap on disk?
Naparsil in memory/swap/temporary files?

S
SagePtr, 2016-06-26
@SagePtr

Maybe the script created a lot of small files and ran out of inodes?

V
Vladimir, 2016-06-27
@rostel

cd /home
du -hd1

finds the largest directory in the output cd into it again du -hd1
and so on until we find the last one where everything was poured

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question