ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved yum-complete-transaction Running Out of Memory

    IT Discussion
    yum rpm linux centos centos 6 rhel rhel 6
    4
    24
    4.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      I have a corrupted YUM transaction on CentOS 6.5 and cannot get the process to complete. If I do a yum-complete-transaction it runs for about ten or more minutes but ends with "killed." If I check the logs, it is ...

      kernel: Out of memory: Kill process 17313 (yum-complete-tr) score 122 or sacrifice child
      kernel: Killed process 17313, UID 0, (yum-complete-tr) total-vm:1331960kB, anon-rss:435504kB, file-rss:136kB
      

      Any idea how I can get this to clean up? I have already tried adding additional swap space, no luck. It does not appear to be willing to use swap for this operation. I've killed off any unneeded processes to clear up memory. Under normal operations the system uses less than 50% of the available memory, it has lots of overhead. But this RPM database got messed up and now it needs a ton of memory to clean up.

      Ideas?

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Currently attempting to modify the OOM Killer for this particular process:

        echo -15 > /proc/19582/oom_adj
        

        And yes, 19582 is the yum process 😉

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          I've got watch free -m going and watching my memory ebb away.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            I wonder if this could be a factor....

            # cat /proc/sys/vm/swappiness
            0
            

            Doh!

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller
              last edited by

              I'm watching swap get used this time, that's a good sign. It wasn't getting touched before. I'm hopeful.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                Still running after thirty minutes and now it is really hitting the swap, so I have a feeling that this is going to work.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Still running, it has been over an hour now!

                  1 Reply Last reply Reply Quote 0
                  • dafyreD
                    dafyre
                    last edited by

                    What is it installing or uninstalling? That's insane!

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @dafyre
                      last edited by

                      @dafyre said:

                      What is it installing or uninstalling? That's insane!

                      Installing. it is supposed to be completing previously transactions.

                      stacksofplatesS 1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @scottalanmiller
                        last edited by

                        @scottalanmiller said:

                        @dafyre said:

                        What is it installing or uninstalling? That's insane!

                        Installing. it is supposed to be completing previously transactions.

                        Wow how long have they been there?

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @stacksofplates
                          last edited by

                          @johnhooks said:

                          @scottalanmiller said:

                          @dafyre said:

                          What is it installing or uninstalling? That's insane!

                          Installing. it is supposed to be completing previously transactions.

                          Wow how long have they been there?

                          Don't know. Cleaning up after someone.

                          1 Reply Last reply Reply Quote 1
                          • DashrenderD
                            Dashrender
                            last edited by

                            production box then I assume - can't just wipe and start over?

                            scottalanmillerS 1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller @Dashrender
                              last edited by

                              @Dashrender said:

                              production box then I assume - can't just wipe and start over?

                              Yes, very production.

                              All good now, just took some manual labour.

                              stacksofplatesS DashrenderD 2 Replies Last reply Reply Quote 1
                              • stacksofplatesS
                                stacksofplates @scottalanmiller
                                last edited by

                                @scottalanmiller said:

                                All good now, just took some manual labour.

                                Aint nobody got time for that.

                                1 Reply Last reply Reply Quote 0
                                • DashrenderD
                                  Dashrender @scottalanmiller
                                  last edited by

                                  @scottalanmiller said:

                                  @Dashrender said:

                                  production box then I assume - can't just wipe and start over?

                                  Yes, very production.

                                  All good now, just took some manual labour.

                                  I'm guessing the two hours you spent on it was less expensive than rebuilding it.

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @Dashrender
                                    last edited by

                                    @Dashrender said:

                                    @scottalanmiller said:

                                    @Dashrender said:

                                    production box then I assume - can't just wipe and start over?

                                    Yes, very production.

                                    All good now, just took some manual labour.

                                    I'm guessing the two hours you spent on it was less expensive than rebuilding it.

                                    Sixteen hours.

                                    DashrenderD 1 Reply Last reply Reply Quote 0
                                    • stacksofplatesS
                                      stacksofplates
                                      last edited by

                                      You're still unsolved 😛

                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        I have been solved.

                                        1 Reply Last reply Reply Quote 1
                                        • DashrenderD
                                          Dashrender @scottalanmiller
                                          last edited by

                                          @scottalanmiller said:

                                          @Dashrender said:

                                          @scottalanmiller said:

                                          @Dashrender said:

                                          production box then I assume - can't just wipe and start over?

                                          Yes, very production.

                                          All good now, just took some manual labour.

                                          I'm guessing the two hours you spent on it was less expensive than rebuilding it.

                                          Sixteen hours.

                                          did that include the time it was just running? Well I suppose if you were onsite doing nothing else waiting for this to finish.. that would be a huge bad bill.

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller
                                            last edited by

                                            I worked on the box all night. There were a LOT of issues, this was just one at the tail end.

                                            dafyreD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post